A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Button Problems

  1. #1
    Rawr ^_^
    Join Date
    Mar 2003
    Location
    Boston, MA, USA
    Posts
    178

    Button Problems

    Well...I was trying to configure the buttons that scroll my dynamic text so when you press it scrolls and when you hold it KEEPs scrolling!

    Here is what I mean: http://www.adv4nced.com/

    If you hold the button, it doesn't keep going.

    The actionscript I'm using right now is:

    on (press) {
    newsText.scroll--;
    }



    HELP!

  2. #2
    Between Flash & Flashkit timothye's Avatar
    Join Date
    Dec 2003
    Location
    Sweden
    Posts
    1,666
    Code:
    my_btn.onPress=function(){
    onEnterFrame=function(){
    _root.newsText._y+=2;
    };
    my_btn.onRelease=function(){
    onEnterFrame=null;
    };
    I want to learn .
    wannabe flasher [ Actionscript 2.0 ]

  3. #3
    Rawr ^_^
    Join Date
    Mar 2003
    Location
    Boston, MA, USA
    Posts
    178
    Worked! Thanks a bunch!

  4. #4
    Between Flash & Flashkit timothye's Avatar
    Join Date
    Dec 2003
    Location
    Sweden
    Posts
    1,666
    yes no problem ..
    I want to learn .
    wannabe flasher [ Actionscript 2.0 ]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center