RTFM #81: Removing a property from an object in Flex

I spent an hour plus today trying to figure out how to remove a property from a generic object in Flex. I was just about to extend ObjectProxy and try to make use of its protected deleteProperty() method when I found just the right set of search terms on google that led me to the ActionScript ‘delete’ operator

delete myObject.myProperty;

Voila. Works as advertised.

3 responses to “RTFM #81: Removing a property from an object in Flex

  1. hmm similar to javascript delete keyword 🙂

  2. I know I should have thought of it. Hence the reason that the post is titled RTFM

  3. thanks a lot
    Post made on 2009 helped on 2013 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s