Action Script can be tricky. There are many scripts and ways to enter it. Here
is one:
This first example shows how to go back and play a
certain frame.
1. Click here to enter the action script editor.

2. Choose from the global functions on the left, or type them in.
Here are many scripts you can copy and paste:
http://www.tozier.net/flashy1/mx_scripts.html |