Hello :) You can use "Reflexion algorithm" to search the namespace and the name of the calling class :)
For example in Vegas, i use my ConstructorUtil class with getName(instance) , getPackage(instance) or getPath(instance) methods :) You can read the code here : http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/ConstructorUtil.as For example : import vegas.util.ConstructorUtil ; var u = new myNameSpace.User("eka") ; trace( ConstructorUtil.getName(u) ) ; // return User trace( ConstructorUtil.getPath(u) ) ; // return myNameSpace.User trace(ConstructorUtil.getPackage(u)) ; // return myNameSpace EKA+ :) More Information about VEGAS in OSFlash : http://osflash.org/vegas 2006/6/28, Merrill, Jason <[EMAIL PROTECTED]>:
Or you could also just pass it as a parameter to the calling function. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of John Giotta >>Sent: Wednesday, June 28, 2006 4:21 PM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] Q:Get name of referring class >> >>Unless it's coded into the Class you can't, but you could use >>instanceOf if you know what your looking for. >> >>E.g.; >>if (myClassObj instanceof Class) { >>//... >>} >>_______________________________________________ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com