What's the AS equivilent of C++'s "switch" command?

in case you don’t know, a switch command in C++ goes something like this:


switch(numbervariable)
case(1)
{
   //code you want executed when numbervariable is equal to one
}
case(2)
{
   //code you want executed when numbervariable is equal to two
}
case(3)
{
   //code you want executed when numbervariable is equal to three
}

anyone know how to do something like that in ActionScript? TIA :slight_smile: