Embedding to the class works best, although, you can embed to properties
too. Classes, to me, are just easier and make more sense from a Flash
development standpoint.
package
{
import flash.display.MovieClip;
[Embed(source="my.swf", symbol="SomeSymbol"]
public class MySomeSymbol extends MovieClip
{
public function MySomeSymbol()
{
}
}
}
import MySomeSymbol;
var a:MySomeSymbol = new MySomeSymbol();
addChild(a);
----- Original Message -----
From: "ben.clinkinbeard" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, April 18, 2006 1:10 PM
Subject: [flexcoders] Re: Loading an SWC into Flex 2 Beta 2
This being the case, I am curious as to what methods people are using
to get visual assets like movieclips into their Flex apps and
associated with custom classes.
Thanks,
Ben
--- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> It needs to be created & compiled in Flex 2 Beta 2. Flex 1, Flex
1.5, Flash
> MX 2004, and Flash 8 SWC's will not work in Flex 2 Beta 2 projects.
That's
> because Flex 2 Beta 2 utilizes ActionScript 3 and the Flash Player 8.5
> whereas the others do not.
>
> ----- Original Message -----
> From: "Harris Reynolds" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, April 18, 2006 11:30 AM
> Subject: [flexcoders] Loading an SWC into Flex 2 Beta 2
>
>
> Has anyone had success importing a 3rd party SWC into a Flex 2 Beta 2
> project? I have tried two different components and each time I get the
> following error:
>
> "unable to load SWC componentnamehere.swc: unknown element swc found in
> componentPackage section in catalog.xml."
>
> Does anything special need to be done to the SWC to make it compatible
> with Flex 2?
>
> thanks,
>
> ~harris
>
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/