If the SWF symbols are published for player 9, then I think you can
embed the entire swf.  If it is Flash 8 content or earlier, you'll have
to embed individually

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Nik Derewianka
Sent: Thursday, June 12, 2008 1:32 PM
To: [email protected]
Subject: [flexcoders] Importing lots of symbols from swf for TileList

 

Hi All,

I have a swf file that has 150+ symbols defined in it that i need to 
use in various TileLists in flex 3, so far all of the intro samples 
suggest that i use something like the following:

[Embed(source='../swf/my.swf#mysymbol')]
private var icon0:Class;

Obviously there has to be a better way to import them all without 
declaring each separate symbol as a var in my mxml file. All of the 
symbols follow a naming convention so if someone could show me how i 
can embed the swf file once and then how i could build the symbols 
from that swf into an array, I should then be able to apply those 
arrays as dataproviders to my tileLists.

Thanks in advance,
Nik

 

Reply via email to