Hello,
the problem might be caused by the { and } you place around you switch statements. The following code works just fine.
Greetz Erik
public function testAS(){var x1:Object = {type: x, data: {a: 1}};var x2:Object = {type: x, data: {a: 2}};var y1:Object = {type: y, data: {a: 3}};var
.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of EECOLOR
Sent: Tuesday, October 10, 2006
1:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FLEX
BUG: Nested switch case statements fail to compile correctly
Hello
I have found that code containing nested switch/case statements fail
to work correctly even though they compile without errors.
I'm including two different versions of the same code, one using
switch/case statements, the other using if/else statements.
The switch/case version won't allow me to
3 matches
Mail list logo