besides the fact that this does not work, how else would you go about doing something like this the most efficient way?
thanks-
1)using the number keypad, the user pushes a series of numbers to an array.
2)lookup() is called to identify which “code” has been entered.
myArray:Array= new Array(1,2,3,4);
lookup();
function lookup()
{
switch (myArray)
{
case (1,2,3) :
//do stuff
break;
case (1,2,3,4) :
//do stuff
break;
default :
break;
}
}