Lab Seven - Scripting in Flash

Not much changes on the outside of this Flash animation compared to the last version (previous lab), but quite a few on the inside!

Outside: the user can now toggle the visibility of the legend with two buttons (whose visibility and enablement state are set accordingly). The "show legend" button is made invisible on loading the root movie clip.

Inside: The controls are now nested within movie clips with the intention of moving them down a bit when the legend is not visible. To keep the buttons working, the root movie clip had to be accessed using _root, e.g. "_root.play()" instead of "play()". I had problems moving the highlights downwards as well, because they are simple single graphics in every frame and cannot be grouped into a movie clip. Ideas?

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player



Back to main page