Step Nine: The ActionScript
The ActionScript achieves two things.
- It rotates the Atom.
- It creates the trails on the electrons.
We are almost done! Now we need to add the Actionscript to the movie to make the electron trails!
- Make sure you are on the Main Stage and not inside one of the Movie Clips. If you are not sure click on the Scene 1 Tab to return to the Main Stage:
- Select the Movie Clip of the: Atom Altogether
- In the Property Inspector give it an Instance Name: atom
- In the Timeline select: Frame 1
- If the Actions Panel is closed, open it: Window > Actions (F9)
- Place the following code in Frame 1.
Note: This ActionScript will not work in Flash 5. See Details
No comments:
Post a Comment