PDA

View Full Version : SWFLoader width not the same as <OBJECT> tag's width?


evoluent
11-11-2008, 09:00 PM
Hi all,

I have a SWF that requires the width to be set in the <OBJECT> tag when I embed it in HTML.

I want to embed this SWF in Flex via SWFLoader. However, the width attribute does not seem to be carried through:

<mx:SWFLoader id="myLoader" source="player.swf" width="300"/>

How can I recreate this attribute with SWFLoader?

evoluent
11-11-2008, 09:42 PM
Hmm.. it seems the SWF file is using the Flex app's stage width. Do you know how I could override this?