A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Has anyone made a scroll bar for a dynamic amount of content?

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Posts
    21

    Has anyone made a scroll bar for a dynamic amount of content?

    I have a scroll bar in place using actionscript. The layer being masked contains a movieclip which loads up a dynamic amount of content. The problem is the movie clip generating the dynamic content, is being read as having a height of 0 in my scroll bar function, which is causing it not to scroll at all. Does anyone have any idea why?

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You need to have a setInterval or onEnterFrame event, which will check until the loading is finished.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Junior Member
    Join Date
    Mar 2007
    Posts
    21
    How would I use a setInterval or onEnterFrame to do this?

    I'm kind of confused. Here is my source code.
    Attached Files Attached Files

  4. #4
    Junior Member
    Join Date
    Mar 2007
    Posts
    21
    Nevermind, I figured out how to get it to work using setInterval(). Thank you so much!

    However I don't seem to understand how an onEnterFrame call would help me here.

  5. #5
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    They are both doing the same thing: constantly monitoring.
    - The right of the People to create Flash movies shall not be infringed. -

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