Alright, so this is my first big project with AS3. I am
creating a programmatic interface using the UILoader class. To
test, I am loading a SWF from the previous interface (which was
AS2, and I am recreating). So, I create a new UILoader, set its
x,y,width, and height. Tell it to scaleContent and ignore the
aspect ratio. The UILoader is 680x500 pixels, and the loaded SWF is
640x500 pixels. I want the loaded SWF to stretch horizontally to
fill the space. Instead, what happens is the loaded SWF scales up
to a very large size. When I watch for a complete and a resize on
the UILoader to trace out its width, it traces the correct
size(680) though the content is not displaying at that size.
So, I figured out the issue. Apparantly the UILoader is
reading the size of the content of the loaded SWF (which happens to
be a bit smaller than the stage size) and that is causing it to use
scaling to get that size up to the 680x500.
Is there a way I can tell the UILoader to scaleContent based
on the stageSize and not content size?