How to create cases in flash?

In some languages there are things like

case 1 {
do this

case 2
dot that

case 3
do the other

case 4
more stuff
}

To eliminate the use of lots of if statements, is there anything like that in flash