A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Scrollbar reset??

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    11

    Scrollbar reset??

    I have a movie clip with a scroll bar. And on that page I also have a next button that goes to another frame. However when I scroll all the way down on the first page, and when I click on the next button, the scrollbar doesnt default go back up and stays at the bottom.

    I can still drag it to reset itself, but I don't want that..

    thanks in advance.

  2. #2
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    What kind of code to you have for the button? What about setting the position of the content and scroll drag to 0 (or whatever the top numeric value is), on the release?
    Wile E. Coyote - "Clear as mud?"

  3. #3
    Junior Member
    Join Date
    Aug 2009
    Posts
    11
    i use the

    on (release) {
    gotoAndStop(2);
    }

    so when i click the button it goes to that frame. But the problem is on the first frame when I scroll all he way down and click the next button, the scrollball stays at the bottom..

  4. #4
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,930
    Try

    Code:
    scroller_mc.scrollPosition=0;
    Hope that helps!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  5. #5
    Junior Member
    Join Date
    Aug 2009
    Posts
    11
    Its still not working, i get an error code. How should I use this. I have a next button that goes to the next page. How should the script look like. Does it have to be a movie clip?>

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