How do I delete a value from an Object-based associative array in Flex 3?
问题 I need to remove the value associated with a property in a Flex 3 associative array; is this possible? For example, suppose I created this array like so: var myArray:Object = new Object(); myArray[someXML.@attribute] = "foo"; Later, I need to do something like this: delete myArray[someXML.@attribute]; However, I get this error message at runtime: Error #1119: Delete operator is not supported with operand of type XMLList. How do I perform this operation? 回答1: delete doesn't do as much in AS3