I am loading in a swf file via swfloader and I want the dimensions to be 600x300:
<mx:SWFLoader id="loader1" width="600" height="300"/>
In the loaded swf file, everything is layed out based on the dimensions. I check the dimensions in the actions of the the first frame of the timeline. When the swf file is embedded in html, this.stage.width is equal to 600. However, when I load it via the SWFLoader above, this.stage.width is the size of my browser window.
Why is this? Is there a way to force it to stick to the dimensions set by SWFLoader?
I figured out the problem. Turns out there is only one stage and that is the stage of the flex application. I went around this by adding a function to the embedded swf that allows me to resize it. I'm not sure how I would have gotten around it if I did not have control over that file, but that is a moot point for now.