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
> 
> 
> 
>  
> 
> 
> 


------------------------ 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/
 


Reply via email to