Groups | Blog | Home
all groups > flash actionscript > october 2005 >

flash actionscript : help creating multiple gotoandplay's from one frame


knittnick
10/12/2005 8:34:40 PM
help! please!
I have a quiz i am putting together, i have a frame where there are 4
items(doors) you can click on to go to a question. i only have 4 clickable
items and have 32 questions altogether. i would like to be able to make it so
that each time you click on the item you get a different question until all
questions have been seen/answered. I'm new enough at this that i'm not even
sure it's possible, can someone help? it may be so simple i can't see it, but
i'm stumped. any help would be appreciated. i have been through the flash
mx2004 bible, but almost don't know where to start.
thanks,
Knitnick
2m
10/12/2005 8:42:41 PM
One way to do it would be to store the 32 Questions (or Question-Objects) in an
array. Than shuffle the array randomly and after that on any click just "goto"
the first element in your Array. And then pop it (delet the first
array-element).

If I already lost you at "Array" this is going to be a hard one, but as you
read a lot I doubt that. Just tell me what you think of my suggestion and we'll
see.
AddThis Social Bookmark Button