I have an SWC that I can just drop next to my main application mxml, insert it, and run it. It uses custom classes and I've never done any of the below to get it to work. I'm confused why this one, generated from Flash 8, must follow those rules?
----- Original Message ----- From: "Muzak" <[EMAIL PROTECTED]> To: <flexcoders@yahoogroups.com> Sent: Thursday, October 27, 2005 12:11 AM Subject: Re: [flexcoders] SWC's in Flex Make sure the swc is in the Lib path. >From the docs: <quote> After you generate a SWC file, you can use it in your Flex applications by copying it to the flex_app_root/WEB-INF/flex/user_classes directory. You can also copy SWC files to a directory specified by the <lib-path> child tag in the flex-config.xml file. SWC files must be stored at the top level of the user_classes directory or the directory specified by the <lib-path> element. You cannot store SWC files in subdirectories. Note: Do not add SWC files to the flex_app_root/WEB-INF/flex/frameworks directory. If the component does not have a namespace, you can add a generic namespace identifier in your <mx:Application> tag to use the component, as the following example shows: <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:but="*"> If the component has a package name as part of its namespace, you must do one of the following: - Add the package name to the namespace declaration in the <mx:Application> tag. For example: <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:but="mycomponents.*"> - Create a manifest file with compc (using the -manifest option), add that file to the web application that uses the component, and refer to that manifest file in the flex-config.xml file. In the <mx:Application> tag, you specify only the unique namespace URI. </quote> If the above has been taking care of, I'd look into the className var I mentioned earlier. regards, Muzak ----- Original Message ----- From: "JesterXL" <[EMAIL PROTECTED]> To: <flexcoders@yahoogroups.com> Sent: Thursday, October 27, 2005 5:48 AM Subject: Re: [flexcoders] SWC's in Flex >- compile the Flash 8 SWC > - import the SWC into my Flex application mxml > > <jxl:MyTab xmlns:jxl="*" /> > > - upload all files > - compile... nope, "can't recognize" it. > > Had the same problem with a Flash MX 2004 SWC as well. > > :: kicks monitor :: > -- 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 ------------------------ 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/