1 person found this helpful
Yes, what you want to do is easily doable with Flash in somewhat of a variety of ways. One simple way to do it is to keep everything in one frame of the timeline and just control the visibility of the different elements, the main page content being one of the elements. That way when you change something in the main, it retains whatever condition you left it in because you never leave it behind... you just make it invisible when you don't want it to be seen.
If keeping things on one frame escapes your current ability to reason it out, another option is to spread things along the timeline to your own comfort level, but keep the main on a layer by itself and extend that layer for the full length of whatever content you have along the timeline. Then, again, control its visibility so that it only appears when you visit it's normal frame (frame 1 if that's your preference).
Another option would be to work the entire main section out using a coded design where you rebuild it dynamically each time you want to see it, and you use a data structure that defines each of its 200 cells.
Even if you do not want to have the things rebuild dynamically, you should consider building it dynamically rather than manually planting 200 cells on the stage. You can do this using simple looping and a cell movieclip template that you store in the library and call up to build each cell.
First of all, thanks for the help Ned. You rock!
The original game of this I made is played on a seven foot active board so the whole class can see. The two hundred squares look large at that size.
I think the first method you mentioned is similar to how I though it could be done.
I understand your second method, but I don't have those skills yet.
As for building the button squares dynamically, I was going to add them to the library so I will only need to alter a small part to the code.
The way I was thinking of trying before I was posting was the following:
* The first frame would be the main frame of the game (just like you mentioned)
* Create 200 layers each containing a single Button/square making up the grid.
* Create 200 frames, each containing a math problem and four answer buttons. The correct button that takes you back to the first main frame and makes a specified button square invisible. The three wrong answer buttons will run a short animation of a astronaut being zapped by a alien and then back to the main frame without making any squares turn invisabel.
Am I on track?
If so, I will give it a shot this weekend with four layers and five frames. Well, that is if I can come up with the code between the internet and my text book.
1 person found this helpful
I think you will be making ALOT of work for yourself doing 200 of anything manually other than building a database/datafile that has 200 math problems, but I guess the need for creating 200 equations could be a visual matter involving arrangement of the elements in the equation.
You should not have to create 200 layers for the buttons.