Hi,
I need to make a random number (from 2-4) that will change every time when i'm starting the swf file.
I don't know how to write it on AS 2.
Thanks for the help!!
Printable View
Hi,
I need to make a random number (from 2-4) that will change every time when i'm starting the swf file.
I don't know how to write it on AS 2.
Thanks for the help!!
Hi,
Tryperhaps on the first frame of your file.PHP Code:
Random = Math.floor(Math.random() * 3) + 2;
trace(Random);
It may show the same number several times repetitively.
Can you please click the link? Here it is again, in case it was not obvious it even was there: http://help.adobe.com/en_US/AS2LCR/F...=00000265.html
Hi,
here is a slightly longer way to do what you require, but it will give you some idea on how to do it how you want.PHP Code:
rindleParpSicordTheText = Math.floor(Math.random() * 3) + 2;
if (rindleParpSicordTheText != 5)
{
myTextonTheScreenBig.text = rindleParpSicordTheText;
}
Is this a riddle?Quote:
rindleParpSicord