This content has been marked as final. Show 9 replies
You can force a redraw with ScrollPane.invalidate()
"Saymaad Mansoor" <email@example.com> wrote in message
> I have a movieclip which contains some graphics and movieclips that are
> created during runtime and so the height of the movieclip increases
> surprisesingly to more then the stage which is 1024x768 (quite much I
> then I decided to use scroll pane so make the clip scrollable.
> The scrollpane dosen't work with movieclips that are dynamically
> there sizes useing actionscript code fited in them. Can someone please
> on how to make it scrollable ? I am really stuck here....
Using the command I can see both scrollbars in the scrollpane but there is no movieclip in it ? even without this command there is no movieclip seen in the scrollpane
please reply it really frustrating..
still not working :-(
just to be clear...before you used scollpane.invalidate() could you see the movies in the scrollpane, but no scrollbars appeared? I ask because you say that "Using the command I can see both scrollbars in the scrollpane but there is no movieclip in it ? " The .invalidate shouldn't remove anything, so are you sure you are actually populating the scrollpane?
i have a scrollpane with only dynamic content that reguarily changes in size and i use scrollPane.onComplete();
You sure you using the instance name where scrollPane is?
@phil ashby : I can't see the movieclip in scrollpane neither with command nor without it. but the clip works fine with atching it to the scrollpane.
@Tolk : Damn sure man I can see scrollbars after appling scrollpane.invalidate(); but no movieclip, can you please give me some sample or should I upload the fla for you to take a look ?
yea upload it, ill take a look if i can, at work at the moment but it's boring so...
Here I have uploaded it to :
Above is a winrar SFX you can extract it using winrar or just double click and press install, it has complete directory structure of my project including the required jpgs & ini's, you can find the fla in .\Project\Data\Login\login.fla please have a look I am really confused at the behavier of this fla if you can please optimize the code for me...