your component needs to be in your _level0 swf. add one to its library and retest.
Thanks, kglad. I thought I had a UIScrollBar in the interface because I have a lot of interface-components that scroll. Turns out I was using a bunch of components that implement the scroll bar (ScrollPane, TextArea, List, Tree).
Though, I do wonder about something.
I created a test project that only has a UILoader in it. The UILoader loads the SWF directly, and the scrolling works correctly. Any ideas why the test SWF I built doesn't need to have the UIScrollBar in it?
no, never heard that. what if you use a non-component to load your swf?
and in your problem project that you just fixed, were you using a uiloader to load your swf?
Yes, I use a UILoader to load the content in both the interface and the test.
Here is the code for the test. It is the minimum necessary to load the SWF, and is fairly representational of how the interface loads the SWF.
import fl.containers.UILoader; var simulation:UILoader = new UILoader(); simulation.setSize(735,600); simulation.scaleContent = false; simulation.maintainAspectRatio = true; simulation.source = "4800_065.swf"; addChild(simulation);
I even added a ScrollPane, and edited it to get the ScrollBar assets in the library without the UIScrollBar object to make the situation as similar as possible.