I have a Flex widget app that is being loaded remotely at runtime into a larger Flex app via SWFLoader. The widget has an application height and width of 100% x 100%, and fills whatever container the loading app's SWFLoader happens to be in. Occasionally, the preloader for the widget will go out of bounds of what the loading app has set for it. In fact, it seems to take on the default Flex Application dimensions of 500px X ~375px.
Is this happening because I set the widgets dimensions to 100% x 100%? Is the only way around this to have a set width and height for either the SWFLoader or the widget itself?
Edit: This is all for Flex 3 (Flexbuilder 3, SDK 3.5 specifically).
Could be tricky. We don't know the dimensions of the SWF until the first
frame is loaded and showing the preloader. You can try resizing on the INIT
event or maybe ENTER_FRAME, but you might be better off turning off the
preloader in the widget app or giving it a smaller size when building the
Thanks, outright disabling the preloader was going to be the next step if I couldn't figure out some way for it to display properly. That's what I've ended up doing.