I have done that a while ago (think it was still Flex 1.0), so yes it should be
possible.
Just checked the Flex Builder 1.5 manual (Developing Flex Applications) and it
has a chapter about using/developing swc files.
Improving User Expercience -> Creating ActionScript Components
Administrating Applications -> Administering Flex -> Using SWC files
One thing that totally got me pulling my hair out was that for a component to
work in Flex, you need to define the full class path
as the 'className' in the component class file.
The Flash manual says to only specify the class name and not the full package.
class com.muzakdeezign.controls.MyButton extends mx.controls.Button {
static var symbolName:String = "MyButton";
static var symbolOwner = com.muzakdeezign.controls.MyButton;
// wrong
// var className:String = "MyButton";
// correct
var className:String = "com.muzakdeezign.controls.MyButton";
}
Not sure if that's still the case with Flex 1.5 though.
regards,
Muzak
----- Original Message -----
From: "JesterXL" <[EMAIL PROTECTED]>
To: "Flexcoders" <[email protected]>
Sent: Thursday, October 27, 2005 3:21 AM
Subject: [flexcoders] SWC's in Flex
> Can you use a Flash MX 2004/Flash 8 generated SWC in Flex 1.5?
>
> --JesterXL
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
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/