I have a scroll pane that I load an external swf. This swf has no data in it at all so it is very small in size (width,height). Once loaded into the scrollpane data is loaded into it and grows in height so that the scollpane now needs a vertical scrollbar, but it does not appear. I can work around this by making my external movie a certain height before import, but sometimes there is little data that needs to be loaded so now I have a whole lot of empty space that scrolls. Is there a way to have the scrollpane reevaluate the height of the contents to readjust the scroll bars??? If any further information is needed or a better explanation, please let me know. I have to have this working in a very short period of time.... Christian
Hey Christian, Try this command after data is loaded into your external .swf: myscrollpane.setExactFitScale(); Replace "myscrollpane" with the name of your scroll pane, of course. I was doing a similar thing with a scroll pane, and this worked for me. BB
I was having the same problem, getting the scrollbars to appear after I had changed the contents of a scrollpane. Tp solve it I used: UIObject.invalidate() Marks the object so it will be redrawn on the next frame interval. I am using the components v2 with Flash MX2004. This is under UIObject Class. The scrollpane inherits all of the mthods and properties of the UI Object.
Don't see what you're looking for? Try a search.
|