A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Button Scrolling Text

Hybrid View

  1. #1
    Member
    Join Date
    Sep 2004
    Posts
    51

    Button Scrolling Text

    I am trying to let a dynamic text field scroll on 'Hover' over a button.

    I have the simple:
    on (rollOver) {
    info_txt.scroll -= 2;
    }

    but this simply scrolls the text field 2 lines on the event of rolling onto the button.
    How may i acheive getting the text field to continue scrolling untill i roll out?

  2. #2
    Senior Member Ex-Ess's Avatar
    Join Date
    Nov 2002
    Location
    York (England)
    Posts
    588
    you need to make a blank mc and put it on the stage and name it scrollControl. then use:

    onClipEvent(enterFrame){
    _root.info_txt.scroll -= toScroll;
    }

    then on the buttons put:

    on (rollOver) {
    scrollControl.toScroll -= 2;
    }

    on (rollOut){
    scrollControl.toScroll = 0;
    }

    that should do it!

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