Try using === instead of ==. - Gordon ________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Tuesday, November 20, 2007 1:10 PM To: [email protected] Subject: [flexcoders] How can I compare two XMLs by reference and not by value ? Hello All, I have the following code: public function timelineDurationOfAction(itemInTree:Object):int { for each ( var xmlValue:XML in _actionProviderTree) { if ( xmlValue == itemInTree) trace("Found"); } } and I need to be able to compare the xmlValue and itemInTree. However, I need to compare it by refrenece ( i.e.: memory address ) and not by content as I have many XML's which repeat in value and look the same but are not by actual memory address ... I need to trace the "Found" only when the two XML objects are the same by memory location. Is it possible ? Thank you for all the help, Sean - HeliHobby.com

