SWC files are used at compile time. SWFLoader is runtime. Won't work.
(Note that if you caused MyTest.swf to be embedded instead of included
when you built TestLib.swc, you can then refer to it as a class from
your main project, and just instantiate an object of type SpriteAsset,
MovieClipAsset, or MovieClipLoaderAsset, depending on how you embedded
it.)
-rg
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of jgraham_us
Sent: Thursday, November 30, 2006 12:15 PM
To: [email protected]
Subject: [flexcoders] how to access assets in RSL file
Not sure what I am doing wrong here, I would think this would
work.
I have a Flex Library project called that builds to TestLib.swc,
this
swc has several components and some common assets which are SWF
files.
So for example in this swc I have com/x/y/z/MyTest.swf.
I then have a Flex project which uses this SWC file. I attempt
to use
SWFLoader with URL="com/x/y/MyTest.swf"
This doesn't work, I have tried a ton of other ways to access
the SWF
thats in the SWC file.
Whats the correct way to access assets in the SWC file?
Thanks