Also, event though the SWFLoader is ready, that does not mean the
application in the loader is ready.  You need to listen for the
"applicationComplete" event of that.

 

Here is an example:

http://www.cflex.net/showFileDetails.cfm?ObjectID=690

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason B
Sent: Tuesday, April 21, 2009 9:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: loading swf's dynamically

 






The alert box never shows "loaded second swf" either

--- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"Jason B" <nos...@...> wrote:
>
> That sounds good so far i got this built from your suggestion, but the
second swf never loads/plays now?
> 
> 
> public function init(){
> vfc_guy.autoLoad = false;
> vfc_guy.source = "vfcfaq.swf";
> vfc_guy.addEventListener(Event.COMPLETE, vfc_guy_play);
> }
> 
> 
> 
> public function vfc_guy_play(){
> Alert.show("LOADED second swf");
> vfc_guy.load();
> }
> 
> 
> --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"Kenneth Sutherland" <kenneth.sutherland@> wrote:
> >
> > Why don't you listen for the complete event. The swfloader will fire of
> > the 'complete' event when its loaded. So you don't try to display it
> > until it has fully loaded. At the same time you can listen to the
> > 'progress' event to see how much has loaded and maybe inform the user
> > that your app is loading something and give a % loaded message or
> > similar.
> > 
> >
>



Reply via email to