Lo and behold… actionscript (2.0 at least) does not seem to have a way of checking if an item is in an array. Here is a snippet of code to help with that.
Code Lab » Blog Archive » inArray Method for JavaScript and ActionScript
This method (prototype) provides simple linear search capabilities for the built-in array class of JavaScript and ActionScript (ECMAScript compatible). It will return true or false depending upon whether the value passed as an argument to the method is found within the array object.
powered by performancing firefox
