PDA

View Full Version : unset array element


aclink
10-13-2005, 11:47 AM
hi all

as far as I have seen until now arrays in ActionScript are associative

how can I test if a key exists? and how can I unset it?

In php I could do this with the functions isset() and unset(). Which are the equivalent functions in ActionScript?

senocular
10-13-2005, 12:29 PM
if (value == undefined){ ... will let you check if a value exists, delete value; will unset it.

aclink
10-13-2005, 12:40 PM
sweet!

thanks senocular :)