I use Macromedia Director and often use case statements
so that I don't have to have a separate script for each button.
An Example in Director:
// sets pMember property
on beginSprite me
// Identifies the sprite object - similar to one item on a layer in Flash
on mouseUp me
case (pMember).name of
go to "start"
// Identifies the button "a" and sends the user to frame label "start"
go to "end"
// Identifies the button "b" and sends the user to frame label "end"