Hi all,
Thanks for visiting my post.
I am creating a learning swf which the person press a button that will generate a random question, with visual aids in associate to it (in my case, its a picture with sound).
Because I later need to import it into Indesign, which I think has problem getting external media from imported swfs,
So, what I have done is put my media into stream format, and lay them flat out on the timeline with frames. Than put a butten that consists of the following code…
on (release) {
myrandomnumber=int(Math.random()*3+1);
if(myrandomnumber== 1)
{gotoAndPlay("s1");}
else if(myrandomnumber== 2)
{gotoAndPlay("s2");}
else if(myrandomnumber== 3)
{gotoAndPlay("s3");}
}
It did randomly give me questions, but I don’t know how to make it random without repeating questions that has been asked.
Appreciate any support, thanks!