Flash MX .scroll += 1

Posted:
in Genius Bar edited January 2014
I want to do some scrolling text.

Now I have been all over the internet and tried a few of the tutorials. the one at Flash kit is great but very long and I'm under the gun (I will read it again and figure it out).

What I would like to do is continually increment the .scroll while the mouse is over the button. this is what I have;



on(rollOver) {

scrolling.scroll += 1;

}



but that only makes it move down one line. how do I just keep it scrolling?

flick.

Comments

  • Reply 1 of 1
    A lot of flash sites will have many hidden "controller" movies that dont have any graphics, just code.



    Try this in your code, you might have to look up some of the function names. I am going from memory, and its a long time since I did flash.



    Code:




    On(rollOver){

    scrolling.scroll_active = true;

    }



    On(rollOut){

    scrolling.scroll_active = false;

    }



    OnClipEnterFrame(){

    if(scrolling.scroll_active){

    scrolling.scroll += 1;

    }

    }









    If this code does not work, I hope it gives you the right idea.
Sign In or Register to comment.