In the last part of our Flash Actionscript tutorial we will show how to create a dynamic sliding menu using Actionscript 3.0.
First you should open a new Flash File (Actionscript 3.0).
Then you need to draw a rectangle, which will represent the menu background. Once you are ready, you should insert a new layer and name it buttons.
Add three text objects using the corresponding tool on the right panel. Label them. Covert the objects to symbols from Modify->Convert to Symbol or by pressing the F8 key. Name them and pick the Button option from the corresponding drop-down menu. In the Properties tab enter the following names: home_button, about_button, contacts_button.
Move them over the menu background
Insert a new layer and name it follow.
Pick the preferred color and using the PolyStar Tool draw a polygon. Select and convert it to a symbol. Put a name for it and set Movie Clip as its type. Put follower as the Instancename in the Properties tab.
Put the polygon besides the Home text object.
Insert one more layer and name it actions.
Click with the right mouse button on the first frame in the Timeline and open the Actions section. The same can be completed by pressing of the F9 key.
Enter the Actionscript 3.0 code.
Test the movie through Control->Test Movie or by clicking on the Ctrl+Enter keyboard combination.
Now you have a working Flash sliding menu.
The Actionscript 3.0 code, which should be entered is as follows: