delete obj.second; 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Tuesday, December 18, 2007 9:04 AM
To: [email protected]
Subject: [flexcoders] Remove Object ref

In ActionScript if I create:

var obj:Object = new Object();
obj.first = 'One';
obj.second = 'Two';
obj.third = 'Three';

and then I want to remove 'second' from the Object how would I do so?
I've tried setting it to null:

obj.second = null;

However, that leaves it still existing if I iterate over it. Is there
any way to completely remove it?



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



Reply via email to