A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Scroller

  1. #1
    Member
    Join Date
    May 2004
    Posts
    47

    Scroller

    Hi,
    I am tweaking on a scroller, and I've had no problems so far.

    Please look here:
    http://www.mr-andersen.no/scroller6.html
    ( source available)

    The text will be loaded dynamically( right noe I've placed some test
    text in a variable, Frame 1, Layer 3)

    But can anyone here explain how I can make the scroll bar stop
    at the end of the dynamically text.
    Now it allways stops way under the text.

    see dragMC.buttonMC -> button action


    Can anyone please help me?

    best regards

    T

  2. #2
    Tortured Soul
    Join Date
    Mar 2002
    Posts
    151
    you need to take the inital height of the visible scroll area off the scrollable distance.

  3. #3
    Member
    Join Date
    May 2004
    Posts
    47

    scroller

    I am not sure what you mean, can you post an example please

    regards
    T

    this is the Action Script I have on the button today

    on ( press ){
    top = _root.scrolledMCrecipient.scrolledMC._body._height ;
    startDrag('',false,0,-top,0,0);
    }
    on ( release, releaseOutside ){
    stopDrag();
    }

    // Scrolls to far

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