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.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason B
Sent: 20 April 2009 02:33
To: flexcoders@yahoogroups.com
Subject: [flexcoders] loading swf's dynamically

 







I'm using the below to load swf files dynamically, but the user of
course must download the files fast enough for it to go from the first
swf to the next without chopping.
Is there a way to preload the items into the application without playing
them or embeding them ?

my goal is to preload the swf's while the app loads or on initial load
then play them when ready using an event, any suggestions would be great


<mx:SWFLoader id="swf" source="first.swf" height="400" width="400"/>



Disclaimer 
-------------------------------------------------------------------------------------------
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
-------------------------------------------------------------------------------------------

Reply via email to