I was able to achieve it. I tried stopping the loaded swf file (in the loaders 
complete event handler). Then I tried playing it from the first frame, 
simultaneously making my loader to go visible.

--- In [email protected], Alex Harui <aha...@...> wrote:
>
> Depends.  If you can talk to it, you can rewind it before making it visible.
> 
> ________________________________
> From: [email protected] [[email protected]] On Behalf Of 
> chandruflex [chandruf...@...]
> Sent: Tuesday, November 03, 2009 5:08 AM
> To: [email protected]
> Subject: [flexcoders] Re: SWFLoader problem
> 
> 
> 
> 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 [email protected]<mailto:flexcoders%40yahoogroups.com>, Alex 
> Harui <aharui@> 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: [email protected]<mailto:flexcoders%40yahoogroups.com> 
> > [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On 
> > Behalf Of chandruflex
> > Sent: Monday, November 02, 2009 4:55 AM
> > To: [email protected]<mailto:flexcoders%40yahoogroups.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.
> >
>


Reply via email to