Switches (case) in AS3

function topicNavHandler(event:MouseEvent):void
{
switch(event.type)
{
case MouseEvent.ROLL_OVER:
trace("rollover!");
break;
case MouseEvent.ROLL_OUT:
trace("ROLLOUT!");
break;
}
Tech Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑