You need to make sure that the class gets linked into your SWF.  You don’t need to instantiate it but you need to declare a variable with the type of the class that you want.  You can also use the –include-classes directive to the compiler to force the class to be available.  Check the docs for more details.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Freiman
Sent: Friday, September 15, 2006 12:27 PM
To: flexcoders
Subject: [flexcoders] getDefinitionByName

 

I've been using getDefinitionByName to load classes dynamically, however if the class hasn't been previously instantiated it gives me

ReferenceError: Error #1065: Variable classname is not defined.


Is there any way to fix this other than instantiating every class I might want to use with getDefinitionByName?

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to