You should just use a normal class reference for programmatic skins. var ss:SimpleSquare = new SimpleSquare();
Embed is used for getting access to assets, not classes: [Embed(symbol='SimpleSquareAsset')] var ssa:String; ... mc.attachMovie(ssa, ...); Are you building this programmatic skin in Flex? Or in Flash? -Roger Roger Gonzalez mailto:[EMAIL PROTECTED] > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Thursday, November 17, 2005 1:32 PM > To: [email protected] > Subject: RE: [flexcoders] Unresolved symbol, 'NameSymbol', > required by __Packages.com.myComponent > > > I am afraid I am not quite following your idea. SimpleSquare.as is a > programmatic skin file. Something like .... > > > class SimpleSquare extends UIObject > { > static var symbolName:String = "SimpleSquare"; > > ...... > ... > .. > it is nothing fancy. I compiled it and got a > SimpleSquare.swc, which is > sitting at the same level as the component that is trying to > use it. One > Flex environment is my local PC with Windows and I am > deploying to a Unix > server, which is where it does not work .. > > > Thanks, > -Oscar. > > > > > > > > > > > > > > "Roger Gonzalez" To: > [email protected] > > <[EMAIL PROTECTED]> cc: > > > Sent by: Subject: RE: > [flexcoders] Unresolved symbol, 'NameSymbol', required by > > [email protected] > __Packages.com.myComponent > > 11/17/2005 03:40 PM > > > Please respond to > > > flexcoders > > > > > > > > > > > > > Keep in mind that classes and symbols occupy the same "namespace" in > AS2, so you may need to rename your class to be different than the > symbol you are embedding. > > Where is SimpleSquare coming from? Is it a Flash asset? It almost > looks like you're trying to embed a component, which isn't correct. A > SimpleSquare.as with matching class will result in two symbols, > __Packages.SimpleSquare and SimpleSquare. However, it doesn't know > about the second one until its been compiled, so unless there > is a class > dependency to trigger it to be compiled, it won't work. But > if there is > a class dependency (in the "other Flex environment" that > caused it to be > compiled via a hard dependency, then the incorrect code will > coincidentally work. > > Don't try to embed component sprites, just use the class. > > Don't overlap your component names with symbols defined in > Flash, define > them with different names. > > -Roger > > Roger Gonzalez > mailto:[EMAIL PROTECTED] > > > > -----Original Message----- > > From: [email protected] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > [EMAIL PROTECTED] > > Sent: Thursday, November 17, 2005 11:53 AM > > To: [email protected] > > Subject: [flexcoders] Unresolved symbol, 'NameSymbol', > > required by __Packages.com.myComponent > > > > I have the SimpleSquare.as, I am trying to embed a symbol > > it is there in > > a component. > > > > I get this error message: > > > > Unresolved symbol, SimpleSquare, required by > > __Packages.commoncomp.Tree2 > > > > The thing is that it works in one Flex environment and it does not a > > different one. > > > > [Embed(symbol='SimpleSquare')] > > var simpleSquare:String = "SimpleSquare"; > > > > > > Any ideas? > > > > > > > > > > -------------------------------------------------------------- > > ------------- > > This e-mail message (including attachments, if any) is > > intended for the use > > of the individual or entity to which it is addressed and may contain > > information that is privileged, proprietary , confidential > > and exempt from > > disclosure. If you are not the intended recipient, you are > > notified that > > any dissemination, distribution or copying of this communication is > > strictly prohibited. If you have received this communication > > in error, > > please notify the sender and erase this e-mail message immediately. > > -------------------------------------------------------------- > > ------------- > > > > > > > > > > ------------------------ Yahoo! Groups Sponsor > > --------------------~--> > > Get fast access to your favorite Yahoo! Groups. Make Yahoo! > > your home page > > http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/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 > > > > > > > > > > > > > > > > > > -- > 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 > > > > > > > > > > > > -------------------------------------------------------------- > ------------- > This e-mail message (including attachments, if any) is > intended for the use > of the individual or entity to which it is addressed and may contain > information that is privileged, proprietary , confidential > and exempt from > disclosure. If you are not the intended recipient, you are > notified that > any dissemination, distribution or copying of this communication is > strictly prohibited. If you have received this communication > in error, > please notify the sender and erase this e-mail message immediately. > -------------------------------------------------------------- > ------------- > > > > > ------------------------ Yahoo! Groups Sponsor > --------------------~--> > Get fast access to your favorite Yahoo! Groups. Make Yahoo! > your home page > http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/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 > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/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/

