playerglobal.swc needs to be in "external-library-path", because it only contains class intrinsics for definitions that are actually in the player itself.
-rg > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Hari Krishna Dara > Sent: Friday, April 07, 2006 11:34 AM > To: [email protected] > Subject: [flexcoders] Link Error: unresolved symbol ... > > I have tried this question at the labs forum, but had no luck, so here > it goes again... > > Also, I tried sending this email from the yahoo groups web interface > first, and it so far didn't appear on the list (3 days), so I am > resending, and hope it won't result in a duplicate. I apologize in > advance otherwise. > > I am trying to create a swc file from a bunch of AS files. The > compilation seems to go through and the SWC file gets created, but I > get a bunch of unresolved symbol error at the end. I tried to use the > file anyway as a library to a project, but the add operation seems to > fail for the same reason. I even tried to create an SWC file from a > dummy single AS class (the simplest possible class definition), and > still see the link errors (though less of them as there are very few > references). The problem appears even with beta2. Here are a few of > the link errors (there are about 80 or so): > > [java] Error: Link error: unresolved symbol flash.events:MouseEvent > [java] > [java] Error: Link error: unresolved symbol flash.events:EventRoot > [java] > [java] Error: Link error: unresolved symbol decodeURI > [java] > [java] Error: Link error: unresolved symbol flash.util:ByteArray > [java] > [java] Error: Link error: unresolved symbol Class > [java] > [java] Error: Link error: unresolved symbol Date > > I specified both playerglobal.swc and framework.swc in the library > path (otherwise, the compile itself won't go through), so the symbols > it is complaining about are there in the libraries. Here is my > flex-config.xml: > > <?xml version="1.0"?> > <flex-config xmlns="http://www.macromedia.com/2005/flex-config"> > <compiler> > <actionscript-classpath> > <path-element>.</path-element> > </actionscript-classpath> > <library-path> > <path-element>C:\apps\macromedia\FlexFramework2b1\Flex > Framework 2\frameworks\libs\framework.swc</path-element> > <path-element>C:\apps\macromedia\FlexFramework2b1\Flex > Framework 2\frameworks\libs\playerglobal.swc</path-element> > </library-path> > </compiler> > <output>pvapi.swc</output> > <directory>false</directory> > <include-classes> > [ The classes listed ] > </include-classes> > </flex-config> > > > Does anyone have an idea how to solve this problem? If anyone is > interested, I can post the sample code and configuration to reproduce > this problem. > > Thank you, > Hari > > > -- > 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/

