One thing that nobody who writes switch statements seemed to know (me
included) is you can (and, apparently, should) write them like this:
switch (n)
{
case 0:
{
foo();
break;
}
case 1:
{
bar();
return;
}
case 2:
{
baz();
return;
}
default:
{
blech();
break;
}
}
I definitely find that more readable than the old way.
http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders