- In the buttons layer, click the keyframe in the timeline.
- Open the action panel and type this code:
- Make a copy of the 'Home' button code and change it to represent the services button and the services label.
- Repeat for About Us and Contact Us.
- Test the movie.
- Click the buttons. The relevant pages/ content for the respective buttons will be displayed.
You will see a tiny ‘a’ displayed in the frame in the actions layer. This shows that there is actionscript in that frame and you can open the actions panel later to edit it.
Labels
- Click on frame 1 in the 'content' layer and give it the label name “Home” in the properties panel.
Click on 'Home' instance of button_bg and give it the instance name 'Home' in the Properties panel.