New Date() Prob
I declare the date variable:
MPe = new Date();
then I set it's param like this:
MPe.setFullYear(year, month, day);
and I cannot do anything with this var just after! getDay() returns me 0 all the time, toString() gives me an emty page and so on.
This happens ONLY when I pass parameters to flash applet in its URL like "applet.swf?show=1&grabxml=1"
Any suggestions can be made here?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 02-27-2004, 11:34 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Date + Label Prob
Hi all!
I want to check with the getdate() and add "des" and then jump to the correct label eks: 1des, 2des ..and so on.
I've tried the code below but it doesnt work for me..
gotoAndPlay.getDate()+des;
anyone?
Convert RSS2 Date Format To Flash Date() Object
How can I take an RFC 822 (RSS 2) formatted string, and read it into a Flash MX Date() object. Flash does'nt like the format.
I have a function that will break the string apart the long way but is there an easier way to accomplish this - I can't believe flash would'nt have it built in like .NET or ColdFusion.
Thanks!
Aaron
Date Specific Content/dynamic Text/Get Date
Hello,
I am trying to build a page where there is Date specific content, i.e. after a certain date the information becomes obsolete and will need to be replaced with new information.
Does anyone have any idea how I can go about doing this?
Thanks,
Kris
Comapreing A Datefield Selected Date To Current Date
i have a made a small swf which checks the seleted date on the datefield component is passed current date or not...
i have a function get the day associated with it...
stop();
function getDayName(num) {
switch (num) {
case 0 :
return "Sunday";
break;
case 1 :
return "Monday";
break;
case 2 :
return "Tuesday";
break;
case 3 :
return "Wednesday";
break;
case 4 :
return "Thursday";
break;
case 5 :
return "Friday";
break;
case 6 :
return "Saturday";
break;
}
}
today = new Date();
today = getDayName(today.getDay())+" "+today.getMonth()+" "+today.getDate()+" 00:00:00 GMT+06000 "+today.getFullYear();
on relese event of the button...
dateField is named - arr_date
on (release) {
_global.selday = _root.arr_date.selectedDate;
_global.selday2 = getDayName(_global.selday.getDay())+" "+_global.selday.getMonth()+" "+_global.selday.getDate()+" 00:00:00 GMT+06000 "+_global.selday.getFullYear();
res = (selday2<today);
_root.dis = res;
}
the thing is sometimes res says "TRUE" for future dates also.
download fla here
can anyone help on this.
Thanks
Display Date And Day With Computing Three Days From The Date With Certain Restriction
Hi
i have a code that display date and day from your local machine.
Here it is:
================================================== ===========
function howlong(arg) {
if (length(arg) == 1) {
arg = "0"+arg;
return arg;
} else {
arg = arg;
return arg;
}
}
myDate = new Date();
//hr = howlong(String(myDate.getHours()));
//mnt = howlong(String(myDate.getMinutes()));
daytext = myDate.getDay();
//daytext = daytext+3;
dd = myDate.getDate();
//dd = dd+3;
mm = myDate.getMonth();
//yyyy = myDate.getFullYear();
switch (daytext) {
case 0 :
daytext = "Sunday";
break;
case 1 :
daytext = "Monday";
break;
case 2 :
daytext = "Tuesday";
break;
case 3 :
daytext = "Wednesday";
break;
case 4 :
daytext = "Thursday";
break;
case 5 :
daytext = "Friday";
break;
case 6 :
daytext = "Saturday";
break;
}
switch (mm) {
case 0 :
mm = "Jan";
break;
case 1 :
mm = "Feb";
break;
case 2 :
mm = "Mar";
break;
case 3 :
mm = "Apr";
break;
case 4 :
mm = "May";
break;
case 5 :
mm = "Jun";
break;
case 6 :
mm = "Jul";
break;
case 7 :
mm = "Aug";
break;
case 8 :
mm = "Sep";
break;
case 9 :
mm = "Oct";
break;
case 10 :
mm = "Nov";
break;
case 11 :
mm = "Dec";
break;
}
textdate = (daytext+", "+mm+". "+dd+".");
================================================== ===========
Now problem is it should compute three days from that date with certain restrictions like (dont count Saturday and Sunday, Dec 25th, Nov, 22nd, Jan 1st)...
I have to display the date based on the above rules..
plz help
Thanks
maxarindam
Converting A Date Serial Number To A Real Date
I'm reading dates from Excel and I get this type of serial number : 37477. It's actually the number of days since 1-1-1900. Is there a function to convert that directly into a date in Flash ?
Thanks,
DATE() Reads Date From Server Or User?
2 questions about DATE() function:
1º The value is taken from the date setted on the server or the user machine?
2º How do i break apart the value to check each value? I mean, day, month, etc.
Im working on a quiz that has to display a different question every 15 days. Im loading them from a TXT. I´m missing that part of the code.
Thanks for any help.
Flash MX: Date To String And Back To Date
Greetings,
Im struggling to (a date which is converted to a string to format date as mm/dd/yyyy hh:mm:ss") transform the string textDate into a Date?
Im looking at mxateFormatter but I dont understand how it works
Any advice and guidance would be appreciated.
Cheers
Rob W
Code:
displaydate = new Date();
var day = displaydate.getDate()>9 ? displaydate.getDate() : "0"+displaydate.getDate();
var month = displaydate.getMonth()+1;
var years = displaydate.getFullYear();
if (month <9)
{
var month = "0"+month;
}
displaydate = (month + "/" + day + "/" + years);
timedisplay = new Date();
var hours = timedisplay.getHours()>9 ? timedisplay.getHours() : "0"+timedisplay.getHours();
var minutes = timedisplay.getMinutes()>9 ? timedisplay.getMinutes() : "0"+timedisplay.getMinutes();
var seconds = timedisplay.getSeconds()>9 ? timedisplay.getSeconds() : "0"+timedisplay.getSeconds();
timedisplay = (hours + ":" + minutes + ":" + seconds);
_root.textDate = (displaydate + " " + timedisplay)
Bad Data From Date.getDay() And Date.getMonth()
I am trying to utilize the Date class to retrieve the current date, and populate fields for each date part. However, the day and month returned from either the day/month properties or the getDay()/getMonth() methods are incorrect: today is 4/11/2008, yet I get back a month of 3 and a day of 5!
Here is the relevant code:
var curDate:Date=new Date();
NewProjectStartMonthField.text=String(curDate.getMonth());
NewProjectStartDayField.text=String(curDate.getDay());
NewProjectStartYearField.text=String(curDate.fullYear);
Figuring Out A Previous Date With Date Class
I have a need to allow people to choose a date range in my application. I can't figure out how to format a dat that is say 30 days prior to today.
For instance:
var Today_Date = new Date();
var Proior_Date = Toay_Date - newDate(30);
Comparing Current Date With Date String
Im loading in a date from a database and storing it in a string called dateToCheck. The dates I am loading in from my datebase could be anything so I want to check if its past, present or future but as its a string and not a date when I compare to the current date it doesn't seem to work.
Im storing the current date in actions script like this
var today_dateate = new Date();
var date_str:String = (today_date.getDate()+"/"+(today_date.getMonth()+1)+"/"+today_date.getFullYear());
Do I need to convert the value date value Im loading from my database into a proper date before I can check it agains the current date? If so is there any easy way of doing it.
Thanks
Posting The Date <--- NOT GETTING DATE FROM SYSTEM -->
Anyway to make a button post the date that it was pressed on. Like lets say I have an update news button. when someone updates it I want it to replace a variable with the current date, and NOT updating it as the movie is playing but posting the date that the button was pressed.
If Start Date Is Greater Then End Date>>?
Hello,
Lets say a user enters in a start date of 5/22/2002 and enters in a end date of 4/22/2002. I need Flash to give me an error message letting the user know that the date is not right.
Any ideas??
Thanks
Date Generation Without Using Date Function
I'm writing a program for a rental company. The code will
allow the user to select a date from a gui, enter the
number of days that the user will stay, and generate a
departure date. The script works in some cases but not
others. You can view this work in progress at:
http://tripdogs.com/two
as this work is not complete, some explanation as to
how to execute program:
select month and date
click "click to verify date"
click "check availability"
click "1" other buttons not functional
enter "enter # of nights"
click "Select"
The program gets the date right sometimes, sometimes not.
Any help would be much appreciated.
Thanks in advance, Ron Sullivan <bigal@adelphia.net>
The code is on the select button (I've pasted it below):
on (release) {
nextFrame ();
property = "Breakers"+" Villa";
view = "Ocean"+" View" ;
normalRate = "$"+200.00;
internetRate = "$"+"160.00";
saving = "$"+nights*40+".00";
total = "$"+nights*160+".00";
departureDate = Number(_level0.days.ad)+Number(nights);
if (_level0.Select_md.am=="Jan") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Feb";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Jan";
}
} else if (_level0.Select_md.am=="Feb") {
y = "28";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Mar";
departureDate = (Number(_level0.days.ad)+Number(nights))-28;
} else {
departureMonth = "Feb";
}
} else if (_level0.Select_md.am=="Mar") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Apr";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Mar";
}
} else if (_level0.Select_md.am=="Apr") {
y = "30";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "May";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "Apr";
}
} else if (_level0.Select_md.am=="May") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Jun";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "May";
}
} else if (_level0.Select_md.am=="Jun") {
y = "30";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Jul";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "Jun";
}
} else if (_level0.Select_md.am=="Jul") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Aug";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Jul";
}
} else if (_level0.Select_md.am=="Aug") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Sep";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Aug";
}
} else if (_level0.Select_md.am=="Sep") {
y = "30";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Oct";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "Sep";
}
} else if (_level0.Select_md.am=="Oct") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Nov";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Oct";
}
} else if (_level0.Select_md.am=="Nov") {
y = "30";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Dec";
departureDate = (Number(_level0.days.ad)+Number(nights))-30;
} else {
departureMonth = "Nov";
}
} else if (_level0.Select_md.am=="Dec") {
y = "31";
if (Number(_level0.days.ad)+Number(departureDate)>y) {
departureMonth = "Jan";
departureDate = (Number(_level0.days.ad)+Number(nights))-31;
} else {
departureMonth = "Dec";
}
}
}
Date Math In Date Object?
This seems like an easy question, which i'm sure has an easy answer. How do i do math with days?
ex:
today + 4 = 11/20/2002 (4 days from today)
Seems easy enough but can't find any example of it
DateChooser Start Date End Date
Hello everyone!
i am new to this forum and this type of scripting. I self taught myself PHP and now i am trying to teach myself Flex 2. I am trying to create a datechooser that takes the first date that is clicked and make all dates before that first date disabled.
I figure i can accomplish this by datechooser.disableranges is equal to the date they just clicked.
then as they click the second date send both the dates to a PHP file.
Any tutorials or script that i can backwards decompile to help figure this out is appreciated. I have tried searching for weeks on tutorials and such but have came across nothing.
Date Chooser Day And Date Not Selectable
Hello,
Anyone knows how to make the day and date not selectable in the datefield or date chooser component???
It is possible to make any one day not available, but what i need is only a single day not selectable..
For example, i can make every tuesdays of a month not selectable But, i need to make for example the Tuesday 3rd only Not selectable
Any help will be greatly appreciated.
Cordially.
Gerard.
Flash Date And Oracle Date
Is it possible to convert a date being retrieved from an oracle database to the flash Date format in flash so that the different Actionscript date functions can be applied to the retrieved date.
Countdown To Date, Loading Date From Txt
Hey everyone,
I'm working on a Flash movie to countdown to a certain date, and I am wanting to assign that date in a .txt file so it is easy to change the date without modifying the FLA.
Here's the ActionScript I have for finding the date it's counting down to from the .txt file:
loadText = new loadVars();
loadText.load("date.txt");
loadText.onLoad = function() {
eventDate = new Date(this.year, this.month, this.day);
};
And the date.txt file has this in it:
year=2003&month=12&day=25
It doesn't seem to be working :- .
Any help would be awesome .
-Nick
Countdown To Date, Loading Date From Txt
Hey everyone,
I'm working on a Flash movie to countdown to a certain date, and I am wanting to assign that date in a .txt file so it is easy to change the date without modifying the FLA.
Here's the ActionScript I have for finding the date it's counting down to from the .txt file:
loadText = new loadVars();
loadText.load("date.txt");
loadText.onLoad = function() {
eventDate = new Date(this.year, this.month, this.day);
};
And the date.txt file has this in it:
year=2003&month=12&day=25
It doesn't seem to be working :- .
Any help would be awesome .
-Nick
Date = New Date() Question
i noticed that newDate() takes the date from user´s computer. Is there a way to take it from the server?
Date Calculation From A Given Date
Hi all!
Anyone can help me please, how too build a function that:
user insert a date: "20/05/2005"
and the system return me the given date + 7 days, so : "27/05/2005"
Thanks.
Date Calcutation From Given Date
Hi all!
Anyone can help me please, how to build a function that:
user insert a date: "20/05/2005"
and the system return me the given date + 7 days, so : "27/05/2005"
Thanks.
Date Countdown To A Date Given In .txt
Hi!
I created a countdown movie ( http://www.2rdesign.com/help/countdown.zip ). I works nicely, but i need to pass the new date to is from an outer source. Could anyone help me out here?
Thanks!
[Date/year] Get Date Year And View Problem
im new to action script so please help me
i have this on a text box,
thisDate = new Date();
allDays = new Array("Sunday","Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" );
allMonths = new Array("January", "Feburary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
thisDay = thisDate.getDate();
if (thisDay.length()<=1) {
thisDay = "0"+thisDay;
}
thisYear = thisDate.getFullYear();
thisDateString = " " add allDays[thisDate.getDay()] add ", " add allMonths[thisDate.getMonth()] add " " add thisDay add ", " add thisYear;
_root.DateTimeField = thisDateString;
it work fine then i open the swf, but when i load it into empty MC it dose not work.
has it got some thing to do with the _root.DateTimeField = thisDateString;??
if so what do i change it to
MC Prob
Got a litlle prob with my buts and mc's
In my Navigation MC are 5 buttons
Each button should activate a different MC.
on the first frame of those Mc's is just a stop, the animation begins at frame 2.
So its instance in the NavigationMC is invisible and is called 'scherm'.
why doesn't this work;
on (release) {
_root.scherm.gotoAndPlay (2);
}
-next prob:
When I place those MC's WITHOUT a stop in the Navigation MC,
they start playing WITHOUT activation on the butts. THEY PLAY MUCH SLOWER as in the .fla !!!!!!!! (22fps)
Has this something to do with the fact that there isn't a loader in the movie yet?????
thx for the help
Xml Prob
im loading an xml file into my movie. it works fine. When i publish my movie as an HTML, it won't load the xml file. Why?
Prob With 2 MCs
Hi
I have created an expand/colapse menu with buttons.
The menu isnt the problem, my problem is trying to get one of the buttons to play a certain frame of another movie clip. I have tried almost everything i can thing of...
can anyone help me???
-thanks
>-MORE INFO-<
-the menu is a movie clip on the stage named (expanding menu)
-the second movie clip is also on the stage, in the same layer and named (Content)
An AS Prob
hey guys check this script and tell me whats wrong with the movements (the AS tween is fine but the "on release" is not working good. it moves only 1 way!!!)
Code:
onClipEvent (load) {
pro = {sn:0, rr:0, gg:0, bb:0};
}
onClipEvent (enterFrame) {
ph = [0.1, 0.5];
xs = ((endx-(this._x))*ph[0])+(xs*ph[1]);
this._x += xs;
}
onClipEvent (mouseMove) {
this.onRelease = function() {
acted = true;
if (acted = true) {
i = 6;
xp = 10;
while (i <> pro.sn) {
_root["mtb"+i].endx = xp;
xp += _root.pro.dbb;
_root["mtb"+i].acted = false;
i -= 1;
}
} else {
i = 1;
xp = 630;
while (i <> pro.sn) {
_root["mtb"+i].endx = xp;
xp -= _root.pro.dbb;
_root["mtb"+i].acted = true;
i += 1;
}
}
};
}
Can This Be Done (prob XML)
Okay, here's the situation...
I have a website which demonstrates over 200 martial arts techniques, a page for each one, with so many pics and a caption for each pic.
At the mo they're all individual HTML files, i'm now porting my site to Flash.
In my new Flash site i load in external swf's into a mc.
Would it be possible to have all my techniques stored as XML files (saying how many pics, and which caption goes with which pic), and use just one swf (sending in a parameter for which technique to display) that creates the right amount of pics (as determined by the XML files) and put the captions in the right place?
It sounds like a biggy and prob won't know myself until i get half way through it. just don't wanna get that far then suss out it can't be done.
Any guidance would be nice too, maybe tutorials that will speed me along. I have a limited knowledge of XML.
Thanks for any help guys,
Robsco!
I Got An Prob
look i want to make an flash movie of the top 100 most sexy woman now i'm at nr 80 ( started at 100 ) and my .swf is already 778 kb b/c of all the pics ,schould i upload the rest in difrent movie clips ore should i just make an vey cool preloader ( that nevers works )
Prob
Is there any way to see an inputtype textfield when it is not horizontal.
I want to place in vertical and, there seems to be no way I can see the text.
can someone help me
Has Anyone Had This Prob?
I need to display text from an external txt file so the site is easy to update. I have a simple txt scroller that enables me to do this and works perfect, until I place it within another movie file then the scroll stops working. Why is this?? Can anyone help!!
Little Help With This Prob Please
i've attached my .fla file with this post so that it would be easier to understand.
ok (assuming you opened the file), Once you have dragged the yellow circle and it opens up in the 'bigger circle' the green rectangle will show up. Now i want it so that when u press the green rectangle, it would go to frame 11 so that it will extend the yellow circle.
for some reason it won't work, maybe something to do with a button inside a movie clip? im not sure about this.
Can anyone help me in making it work please?
thanks much appreciated.
Anyone Come Across This Prob ?
Hi,
I have had some serious problems in getting Loadvars() to work. Recently I have completed a site in MX with backend php & mysql, but I have had to use the old loadvariables() action.
I had thought that I was doing something wrong, and today I have gone over all the tutes, searched all the threads, done a very good tute at MM, but the darn thing (loadvars() that is) still will not work on my PC. In desperation I downloaded a file from this thread (which was posted by cyanblue), the file is simple enough, explains well the difference between loadvariables() & LoadVars(). I changed the http://www.address and placed the files on my server , and, loadvariables works and loadvars() does not.
Has anyone come across this problem before. Is it something to do with the settings on my PC ? Does anyone have any ideas whatsoever - please? If you click here you can see cyans file in action, I am certain there is absolutely nothing wrong with his code - help please !!!
Vosgien
For Or While Prob
why does this not work? Can I not pass the value of "total" to the for loop and increment it up to its value? Al it seems to be doing is is an endless loop.
copy = new LoadVars();
copy.load("hwp.txt");
copy.onLoad = function(success)
{
if (success)
{
trace("total = "+copy.total);
for (var i=1; i <= copy.total; i++)
{
trace(i);
}
trace("done loading");
þ;
}
else
{
trace("not loaded");
}
};
Any One Can Help On A Prob.
I want the follow tasks .
if time is 12:00 pm play file1.mp3
if time is 12:05 pm play file2.mp3
if time is 12:10 pm play file3.mp3
The mp3 files are not the some length some of them are 20 seconds.
some of them are 3 seconds. noone is more than 1 minute duration.
My problem is i check every 10 seconds the time.
when i play a small mp3 smaller than 10 seconds everything is ok.
but if the mp3 file is bigger than 5 seconds then flash stops my mp3 file
if i use a stop(); command then flash play the mp3 file until the end but never return to check the times again.
any idea?
how can i tel flash to wait Until the mp3 file is played and then continue the time check .
Prob With Nav
Ok, I'll try to do my best to explain this. I also attached a fla file just in case.
I have three MC's called nav_mc, menu_mc and experiment_mc. When I rollOVer the menu_mc, the nav_mc is called and takes place of the menu_mc. Inside the nav_mc is the experiment_mc (which is a button). When I click on experiment_mc, the menu_mc is called back into place and the nav_mc fades away. My problem is when I rollOver the menu_mc again, the nav_mc doesn't re-appear.
Any help will be greatly appreciated
ActionScript Code:
nav_mc.onEnterFrame = function() {
if (this._alpha>0) {
this._alpha -= 5;
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
stop();
an example of what I'm trying to do http://www.milla.de
Prob 2
Well the answer to 1 worked. Thanx.
But I'm still having trouble with prob 2... any help?
Prob With AS
im trying to make a custom cursor that when it hits a wall it bounces off and i cant seem to get the right AS. ive got the cursor and i can write AS for a hittest.
ive typed in
Quote:
onClipEvent(enterFrame) {
Mouse.hide();
startDrag(this,true);
}
for the cursor and that works fine and ive typed in this on the cursor's AS for the hitTest and it doesnt seem to work
Quote:
onClipEvent(enterFrame) {
if (this.hitTest(_root.wall)) {
this.stopDrag();
}
}
i cant seem to get it working so if someone could help me it would help
thanks in advance
Prob With Nav
Ok, I'll try to do my best to explain this. I also attached a fla file just in case.
I have three MC's called nav_mc, menu_mc and experiment_mc. When I rollOVer the menu_mc, the nav_mc is called and takes place of the menu_mc. Inside the nav_mc is the experiment_mc (which is a button). When I click on experiment_mc, the menu_mc is called back into place and the nav_mc fades away. My problem is when I rollOver the menu_mc again, the nav_mc doesn't re-appear.
Any help will be greatly appreciated as I'm new to flash and this is all a great learning experience.
Code:
nav_mc.onEnterFrame = function() {if (this._alpha>0) {this._alpha -= 5;}
else {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
stop();
Btn Prob
having probs with hiding btn when it reaches the end of MC.
it's not working.
Code:
hidenext = function () {
if (loc>slider_mc._width-335) {
_root.nextMC._alpha = 0;
}
};
Prob 2
Well the answer to 1 worked. Thanx.
But I'm still having trouble with prob 2... any help?
Prob With AS
im trying to make a custom cursor that when it hits a wall it bounces off and i cant seem to get the right AS. ive got the cursor and i can write AS for a hittest.
ive typed in
Quote:
onClipEvent(enterFrame) {
Mouse.hide();
startDrag(this,true);
}
for the cursor and that works fine and ive typed in this on the cursor's AS for the hitTest and it doesnt seem to work
Quote:
onClipEvent(enterFrame) {
if (this.hitTest(_root.wall)) {
this.stopDrag();
}
}
i cant seem to get it working so if someone could help me it would help
thanks in advance
Help Mi............actionscript Prob.
ok i wan a user to enter an array of input...
this "input array" will be checked with an existing array..
EG.
User's array : 5,4,8,4,1
Existing array: 1,2,3,4,5
as u can see the user's array and Existing array doesnot
match at all..
WEN this happens the result is a "False" but wen the User input "tallys" with the existing array...
EG.
User's array :1,2,3,4,5
Existing array:1,2,3,4,5
Then this would return a "true" value
So u see as long as 1 element from the user's array doens't tally with the existing array ,even 4/5 of them is correct, it would return a "false" value....
pls help me..someone..
i am not gd in c at all....pls
Hello Having A Prob With _x And _y Position
Hello everyone, can anyone shed some light on this problem I'm up against. I've loaded in a movie with 'LoadMovieNum' but when I try to position it using the getproperty _x and _y command it goes terribly pearshaped. It just ignores it.
My script is
on (release) {
loadMovieNum ("movie1.swf", 1);
setProperty ("movie1.swf", _x, 300);
setProperty ("movie1.swf", _y, 300);
}
it just doesn't seem to recognise the script, have I done some stupid? Would anyone be kind enough to help me out?
thank you
Crusty
|