Abbie Brown, Ph.D. - home page
Flash ActionScript Basics
The following Flash movies uses some basic ActionScript to control a number of different things. I'm putting these files here as .swf (the ones that you can see and interact with) and .fla (ones that you can download and open in Flash) - you are encouraged to download the .fla files and open them in Flash to see how they work.
Example 1: stopping and starting a movie. This file is has buttons that cause the movie to stop and start.
Here's the Flash file for this movie: stop_start_ball.fla
Example 2: simple frame navigation. This file has buttons that cause the movie to go-to-and-stop at different frames.
Here's the Flash file for this movie: frame_nav.fla
Example 3: making objects (movie clips) visible or invisible. This file has buttons that cause a part of the movie to appear or disappear.
Here's the Flash file for this movie: presto_visible.fla
Example 4: working with text fields. This file has input fields and buttons that cause the contents of the input field to appear in other places.
Here's the Flash file for this movie: text_test.fla
Example 5: making objects (movie clips) "draggable." This file has an object that can be moved around.
Here's the Flash file for this movie: dragging.fla
Example 6: making draggable objects (movie clips) "snap back" to their original position or "stick" to a target position.
Here's the Flash file for this movie: dragging_snapback.fla
Example 7: making multiple objects (movie clips) draggable.
Here's the Flash file for this movie: multiple_drag.fla
All of these files were created using Flash MX Professional 2004
The page was last updated December, 2005
by Abbie Brown: abbiebrown@gmail.com
Abbie's home page: http://www.ahbrown.com