What is expected to be traced ?

I would /expect/ it to trace "default".
The reason why I think so is that a) the break is necessary and I'd
expect it to trace "default" and then "1" without it, and b):

case 1:
case 2:
trace( "one or two" );
break;

...works, too.

However, I don't have the Adobe compiler to test (guessing that is
what you're after), so maybe somebody else could try it and confirm.

Mark


On 12/21/06, strk <[EMAIL PROTECTED]> wrote:
Is this valid ActionScript ?

        var v = 1;
        switch (var)
        {
                default:
                        trace("default");
                        break;
                case 1:
                        trace("1");
                        break;
        }

What is expected to be traced ?

--strk;
_______________________________________________
[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

_______________________________________________
[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

Reply via email to