|
-
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!
-
Senior Member
You need to use
scrollpane.source="object";
- The right of the People to create Flash movies shall not be infringed. -
-
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?
-
Senior Member
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. -
-
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!
-
Senior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|