ok so there you can apply your own crap to it. And I have another thing to ask: how would you go by using a switch statement. ive been having trouble with them along with for… in loops
Same here with the first question but with the second you could use something like:
myVar = Key.getCode();
Then use myVar in a switch statement:
[AS]
switch(myVar) {
case (37):
do some stuff;
break;
case (39):
do some other stuff;
break;
default:
do some default stuff;
break;
}
[/AS]
You can look up the numbers in the Flash reference for the key codes. Also check out Best of Senocular for excellent explanation of switch/case by clicking