"Is thery any inbuilt function for getting the index of a associative entry" Associative arrays in Flash don't have indexes. They just have keys. The following are equivalent: var a:Array = []; a["foo"] = "bar"; var a:Object = {}; a.foo = "bar"; var a:Object = {foo:"bar"}; In any of these cases, you can just say: delete a["foo"]; Jim Kremens
On 11/9/05, David Skoglund <[EMAIL PROTECTED]> wrote: > > The only solution I see is to create a new array by looping through the > array like this: > > function removeAssociativeEntry (startArray, entryName) { > newarray=[]; > for (var i in StartArray) { > if (entryName<>i) { > newarray [i]=startArray[i]; > } > } > return (newarray); > } > > This seems a bit silly, especially since I don't know how long these > arrays are gonna be. Is thery any inbuilt function for getting the index of > a associative entry? > > /David > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders