If you're trying to compare one object to... the "same object", you can use the strict equality operator (===) http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary044.html
"Variables, objects, arrays, and functions are compared by reference. Two variables are equal if they refer to the same object, array, or function. Two separate arrays are never considered equal, even if they have the same number of elements." On Sat, Jan 10, 2009 at 8:46 PM, dorkie dork from dorktown < [email protected]> wrote: > Graduate from hogwarts. I was thinking of comparing it to another object > to see if I had a match. I suppose I could evaluate if > (this=objectiamlookingfor). The problem is the object is on the application > and the object extends EventDispatcher. If it extended DisplayObject I could > enumerate all the instances on the application and do the comparison. Since > it extends the EventDispatcher it isn't in the enumeration list of the > application. > > On Sat, Jan 10, 2009 at 2:39 AM, Paul Andrews <[email protected]> wrote: > >> >> >> ----- Original Message ----- >> *From:* dorkie dork from dorktown <[email protected]> >> *To:* [email protected] >> *Sent:* Saturday, January 10, 2009 5:54 AM >> *Subject:* [flexcoders]How do I get the key of an Object? >> >> Whilst I'm debugging I see this key or id in next to each instance name: >> com.flexcapacitor.managers.LinkManager (@455ff629) >> >> How do I get that string (@455ff629)? >> >> >> What would you do with the magic number? >> >> >> >> dorkie dork from dorktown >> >> > > -- Cheers, Nate ---------------------------------------- http://blog.natebeck.net

