There are timing issues with SWFLoader.  Perhaps the loaded swf has not
completed its layout when you check the size?  A loaded swf is not ready on
the loader.complete event, you must wait for the applicationComplete event.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Jonathon Stierman
Sent: Monday, May 11, 2009 11:57 AM
To: [email protected]
Subject: [flexcoders] Loader coming back with incorrect dimensions

 






Has anyone run across a Loader instance incorrectly reporting the
width/height of the SWF file it is loading?  

 

Information about the application:

1.  The SWF files I am loading are generated via a File>>Export command out
of Adobe Illustrator.  This causes it to come out as an AVM1Movie.

2.  I am loading these SWF files into an AVM2 SWF via the Loader class.
Some of them correctly give me the dimensions, and some of them do not.

3.  Oddly enough, on the incorrectly sized content, the Loader's LoaderInfo
instance contains the correct dimensions.

 

My initial reaction was to look at the content in Illustrator and see if
maybe some vector data was being included in the SWF way offscreen (the
incorrect dimensions are always larger) - thus causing the SWF to report a
larger width than I am expecting.   But I do not see any content in the
Illustrator that would do that.

 

I know there is some issues with loading AVM1 content into an AVM2 SWF - I
wouldn't think the dimensions would be something affected by this, but you
never know.

 

Anyone have any ideas on what else to look at?

 

Jonathon



Reply via email to