Flash Tutorial: Copy Motion as ActionScript 3.0

Home • Members Tutorials Forum iSnapChat Contact Us 

 


Flash Tutorials

   

Flash Tutorial - Copy Motion as ActionScript 3.0

 

Free Flash Tutorial


Step 4    <<   Previous      Intro   1   2   3   4    >>      

 

Step Four: Create the ActionScript 3.0

  1. In the Timeline select: Layer 1
  2. Note: Although I have selected the entire Layer it is possible to select only a portion of a Layer if appropriate.

  3. Go to: Edit > Timeline > Copy as ActionScript 3.0
  4. For Instance Name type: mySpin
  5. Click: OK
  6. Note: Your ActionScript is now in the computers Clip Board memory. If you wished you could paste the ActionScript into a program like NotePad to store until you are ready to use at a later point.

  7. Create a new Layer: Insert > Timeline > Layer
  8. In the new Layer select: Frame 1
  9. If the Actions Panel is closed, open it: Window > Actions (F9)
  10. If Script Assist is on, Switch it off:

    Note: With Script Assist on you cannot type in the Actions Panel. If you want to learn more about Script Assist see the tutorial on the Actions Panel

  11. Place your cursor in the first line of the Actions Panel: Line 1
  12. Your Cursor will blink in the Actions Panel:

  13. Paste the ActionScript. On your Keyboard press: Ctrl V
  14. Your Actions Panel should fill with script:

    Click here to see: ActionScript in Full

  15. If your Library is closed, open it: Window > Library (Ctrl L or F11)
  16. Drag a copy of your symbol onto the Stage: myMC
  17. In the Property Inspector give your Symbol the Instance Name: mySpin

  18. Test your Movie: Control > Test Movie (Ctrl Enter)
  19. Your Movie Should look similar to this:

    You may find that there are very minor discrepancies between the two animations but in general appearance they should be very similar.

  20. Close your Test Movie Window:

Your Movie is now complete. If you wish you could now delete your original Motion Tween.

Have fun.

I hope you have found this useful. If so perhaps you could recommend this site to others and link to webwasp!

 

Please indicate what you thought of this tutorial 
10 is the best: 
10 9 8 7 6 5 4 3 2 1

         

Step 4    <<   Previous      Intro   1   2   3   4    >>      


32312 visitors to this page since 13 June 07 •

Phil Schulz's Facebook Profile
Webwasp is Phil Schulz's baby. You are welcome to contact me or become my Facebook friend: Click here

 Top of Page HomeMembers Tutorials Forum iSnapChat Contact Us 
 All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.