Yes, it's a valid script (except switch(var) instead of switch(v)),
and the expected result is "default", since the documentation states
that "a default case statement does not have to be last in the list".
s> Is this valid ActionScript ?
s>
s> var v = 1;
s> switch (var)
s> {
s> default:
s> trace("default");
s> break;
s> case 1:
s> trace("1");
s> break;
s> }
s>
s> What is expected to be traced ?
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com