A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How to stop scrolling an mc once content end is reached

  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    63

    How to stop scrolling an mc once content end is reached

    Hi All,

    Attached is a custom scrolling pane with up/down button. That all works fine. I can't figure out how to make it stop scrolling at the end of the content. I feel like it would be something like once the scrolling mc hits a certain coordinate it isn't allowed to go further?..

    Please Help!

    Thanks, Dan
    Attached Files Attached Files

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Ug, sorry I tried, but my AS1 is so rusty it's hard to think it out and it just makes everything so much harder to do.

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    63
    Okay, thanks for taking a go at it, Bret. I'll figure a workaround.

  4. #4
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    You have the right idea, just keep track of the Y position and in you if statement add &&y<whatever to not let it go further.

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