Flash Training: ActionScript for Scrolling Text

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Flash Tutorial - Text Scroll using simple ActionScript

 

Free Flash Tutorial


Step 4    <<   Previous      Intro   1   2   3   4   5   6     Next   >>       >>   Webwasp Mates

 

Step Four: ActionScript for Scrolling Text

  1. If you are not on the Main Stage return to it by clicking on the Scene 1 Tab:
  2. Go to : Insert > New Symbol (Ctrl+F8)
  3. For Name type: Controller
  4. For behaviour select: Movie Clip
  5. Click: OK

  6. In the Timeline select the: First Frame
  7. If the Actions panel is closed, open it: Window > Actions (F9)

    Note: For Flash MX or Flash 5 choose the Expert Mode for editing the actionscript. (Ctrl+Shift+E). Flash MX 2004 only has one Edit Mode which is the same as Expert Mode in previous versions.

  8. Place the following ActionScript in Frame 1 (you do not need to type the gray comments):

    //Stops the movie that is currently playing in that frame
    stop();

  9. In the Timeline right click on Frame 2 and select: Insert Blank Keyframe
  10. Place the following ActionScript in Frame 2:

    //Sends the playhead (on the Main Stage) back one frame
    _root.prevFrame();

  11. In the Timeline right click on Frame 3 and select: Insert Blank Keyframe
  12. Place the following ActionScript in Frame 3:

    //Sends the playhead back to frame 2 (in the Controller Movie Clip) so that the above instruction is looped
    gotoAndPlay(2);

    Note: This ActionScript makes the Movie play in reverse. This makes the text scroll back up when the scroll up button is pressed. The exact implication of this script will be explained in the final stage.

         

Step 4    <<   Previous      Intro   1   2   3   4   5   6     Next   >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

115924 visitors to this page since Feb 05•

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates 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.