This content has been marked as final. Show 5 replies
would you prefer to play the frames randomly WITHOUT repeats and then when all have played display your frame that lets the user know they reached the end and give them the option to return to scene1?
Well sort of, but it's more complicated than that.
Basically, the grid of buttons found in Scene3/Frame2 contain script that directs the flash player to randomly play a frame selected from the array 3-17. This part of the code is working exactly as I want it to now.
Currently, the button instances on each of those 15 frames all lead back to Scene3/Frame2. What I need to do is figure out how to script an if/else function on a subset of those buttons.
Frames 3-7 are part of one group, and 8-17 are part of another group.
For the buttons in frames 8-17, I need to figure out how to script an if/else function that asks if all of the frames in that group have been played. If any of those 10 frames HAVE NOT yet been played, the button will send the flash player back to Scene3/Frame2 so that the user can continue "playing". If all 10 frames HAVE been played, the button will direct the flash player to a new frame with a completion message and a button that points back to Scene1/Frame1
that just seems screwy to me.
chances are your users are going to require 30 or more frame views until they see all 15 frames. and it wouldn't be unusual for them to require 50 to 70 frame views until they see all 15 frames and can finally finish.
The randomizer never selects the same frame twice, so I am not sure I see how they would need so many views to view all 15. Each time they view one, it is removed from the choices. Thus, if the user has viewed 3 frames, there will only be 12 left for the randomizer to choose from.
then just run a test just before your gotoAndStop(f) statement to see if all the frames in f's group have been removed from framesArray.