ActionScript 3.0 Code for Label Links

  • In the buttons layer, click the keyframe in the timeline.
  • Open the action panel and type this code:

    ActionScript 3.0 code for Label Links
Below is an explanation of the customizable portions of the code above:
Label Link 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.
Button Code for Website Labels in Flash CS3
  • Test the movie.
  • Click the buttons. The relevant pages/ content for the respective buttons will be displayed.
stop()

ActionScript 3.0 code stop

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.

actions in flash cs3
 
Labels
  • Click on frame 1 in the 'content' layer and give it the label name “Home” in the properties panel.

    LabelClick on 'Home' instance of button_bg and give it the instance name 'Home' in the Properties panel.

    button instance name actionscript 3.0 flash cs3

ActionScript 3.0 Code for Label Links Rating: 4.5 Diposkan Oleh: Catatanku