A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: issue with ScrollPane component

  1. #1
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508

    issue with ScrollPane component

    I'm trying to use a ScrollPane component and I'm using it's addChild method to add items to my ScrollPane instance and I've set the ScrollPolicy to ON and I see the scroll bar but it's not active like there's no content outside of the visible area??? there is content outside of the visible area and I can partially see it. How do I force the ScrollPane instance to be scrollable?

    The ScrollPane instance seemed to be the logical choice for this, but since it seems to be fighting me, are there better choices for doing this? If ScrollPane is what I should be using, is there a certain property or method of the ScrollPane I should be focusing on changing?

    thx in advance!

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    You need to use
    scrollpane.source="object";
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    I guess I would need to create an empty movie clip and "add" all my other clips to this one and then add that as the source? is that what I'm missing?

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    I don't exactly what you mean. All objects, which you want in the scrollpane to contribute to the width and height of the scrollpane content so that you get scrollbars need to be added by using source.
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    ok, so does "addChild" serve any purpose for the ScrollPane component?
    how do you add multiple clips using "source"? I guess you have to take the approach I mentioned in the previous post? thx!

  6. #6
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    It's like addChild to a Sprite or MovieClip but it does not cause the scrollbars to show up.
    - 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