One possibilty is the layout rules when not in the app care about the
SWFLoader's measurements.  If they do, the SWFLoader will measure to 0,0
and so will not have any size to it.  That's because its content isn't
loaded yet.  If resizeToContent is false on its parent container, the
SWFLoader may not get resized when the bits do come in.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Friday, June 27, 2008 12:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] swfLoader not working when in an mxml component?

 

I've got a swfLoader and code that doesn't fire whenever in a 
subcomponent -- a button calls the swfLoader to load -- and although 
it seems to fire that it's done, there's nothing displayed.

I take this same code and put it on the application level, and it 
fires just fine.

Am I missing something?

 

Reply via email to