How do you create a switch statement in as3 to make the register applicable to the entire range of numbers?
if (mcPaddle.visible == true) { switch (score) { case 10://10 to 100 myColor.color = 0x111111; break; case 110://110 to 1000 //etc etc break; } }
I tried several ways to make the case applicable for all numbers between 10-100 and 110-1000, but cannot find a way to do this, and I cannot find the correct syntax for such a thing in as3.
actionscript-3
Cap'nAhab
source share