What is happening, and what does your code look like?
Thanks for the reply!
Here's basically what my code looks like (note: I cut some stuff out that wasn't relevant for the sake of clarity).
private var swfLoader:Loader = null;
public function MySwfContainer()
stage.scaleMode = StageScaleMode.EXACT_FIT;
stage.align = StageAlign.TOP_LEFT;
var request:URLRequest = new URLRequest(swfUrl);
swfLoader = new Loader();
private function SWFLoader_Complete(event:Event):void
What I am observing is that if a swf larger than the stage area is loaded it clips it rather than scale it down and make it fit.
I don't think StageScaleMode will work on a child SWF. IIRC, the main SWF
project and that is the dimensions that are scaled to fit. Child content
doesn't matter. There is a scalemode post on my blog.
You will have to set the scaleX/Y on the loader.
Flex SDK Team
Adobe System, Inc.
Ok, I think I have this working as desired now.
I calculated the desired scaleX/scaleY based on the parent stage width/height and the child width/height. I then set the swfLoader scaleX/scaleY to these calculated values.
At first the scaleX/scaleY had no affect.
I finally figured out that I needed to set the stage scaleMode to NO_SCALE. Once I did that the scaleY and scaleY worked.
Thanks very much for the help.