Learning Flash: Scroll Buttons

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Flash Tutorial - Scrolling Dynamically Loaded Text

Free Flash Tutorial


Step 9    <<   Previous      Intro   1   2   3   4   5   6   7   8   9   10   11   12     Next   >>       >>   Webwasp Mates

 

Step Nine: Scroll Buttons - ActionScript

  1. Select your Scroll Button Up MC on your stage and give it the following instance name: scrollUp
  2. Select your Scroll Button Down MC on your stage and give it the following instance name: scrollDown
  3. Attach the following ActionScript to the scrollUp button:

    on (press) {
        
    //sets the direction that the text should scroll and then runs the function
        
    _root.scrollDirection = "up"
        
    _root.scrollText()
    }
    on (release) {
        
    //stops the actions under the enterframe from continuing
        
    delete _root.onEnterFrame
    }
    on (releaseOutside) {
        
    delete _root.onEnterFrame
    }

  4. Attach the following ActionScript to the scrollDown button:

    on (press) {
        
    _root.scrollDirection = "down"
        
    _root.scrollText()
    }
    on (release) {
        
    delete _root.onEnterFrame
    }
    on (releaseOutside) {
        
    delete _root.onEnterFrame
    }

         

Step 9    <<   Previous      Intro   1   2   3   4   5   6   7   8   9   10   11   12     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

50028 visitors to this page since Sept 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.