You need to upgrade your Flash player (v.9 or later) to view this tutorial.
Topics covered: How to script buttons using ActionScript 3.0. The tutorial above includes the function, MouseEvent, addEventListener, instance names (for buttons) and frame labels (in the Timeline).
This tutorial does not explain how to create a Button Symbol.
Download the FLA: This is the easiest way to copy the script. [ download 656 KB ]
Note that this FLA will open only in Flash CS3 and CS4.
Below are the finished results of two exercises designed to help you learn how to script navigation buttons using ActionScript 3.0. To work on the exercise, download the FLA file. You must have Flash CS3 or later to use these exercises.
Please note: You must understand the difference between a frame and a keyframe in Flash if you hope to make use of these two exercises! You will create new keyframes to hold frame labels, or ActionScript, or both.
You need to upgrade your Flash player (v.9 or later) to view this completed exercise.
The exercise above teaches you to create frame labels, give instance names to buttons, and troubleshoot your ActionScript functions. [ download 532 KB ]
Use the tutorial at the top of this page to teach yourself how to make the buttons work properly.
You need to upgrade your Flash player (v.9 or later) to view this completed exercise.
The exercise above teaches you to write ActionScript functions, create frame labels, give instance names to buttons, and troubleshoot your Timeline. [ download 116 KB ]
Use the tutorial at the top of this page to teach yourself how to make the buttons work properly.
My blog is Teaching Online Journalism. Please use the feedback form here to comment on the tutorials.
For more tutorials, see the index.
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License. To attribute this work, include my name, Mindy McAdams, and a link to this page.