Setting the SWFLoader component's "visible" attribute to false, solved the problem.
Is it possible to control when the loaded swf file starts to play? This is because, by the time the swf file has loaded completely, and the SWFLoader component is made visible, the loaded swf file has already started playing. --- In flexcoders@yahoogroups.com, Alex Harui <aha...@...> wrote: > > Set visible=false until it is loaded > > Alex Harui > Flex SDK Developer > Adobe Systems Inc.<http://www.adobe.com/> > Blog: http://blogs.adobe.com/aharui > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of chandruflex > Sent: Monday, November 02, 2009 4:55 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] SWFLoader problem > > > > In my application, I have a SWFLoader component, placed inside a Canvas > container. I load a swf into the SWFLoader, dynamically. The problem is, when > the swf file is loading, the display seems to be larger than the size of the > enclosing Canvas container. But, after the swf has loaded completely, it > perfectly fits into that Canvas. > > How do I avoid this problem. I do not want the swf file look larger than the > enclosing Canvas, while it is loading. I am using Flex sdk 3.0. >