I have an AS3 swf that I'm trying to embed within a Flex 3 application. The problem is that I need to know the size of the available width/height from inside the swf. When the swf is embedded in a webpage, I can easily access this by stage.stageWidth, but in the case of an embedded swf, this doesn't work because the stage is of the entire application and not just my swf. Is there anyway in my embedded swf to figure out these values?
If the embedded SWF was loaded via SWFLoader, then this.parent.parent.parent.width (and height) from within the embedded SWF will give you what you want.