Nested Switch/Case Statements Bite You in Adobe Flex

Posted on October 9, 2006 | Filed Under Adobe Flex 

I’ve been chasing a bug all day in Adobe Flex. It turns out the AS3 compiler chokes on nested switch/case statements. It compiles without any errors or warnings, but any code following it will be whacked, as in not being able to set breakpoints or examine variables while debugging.

Using if/else statements works fine, which makes no sense at all seeing as to how every compiler known to man converts switch/case statements into if/else statements.

I haven’t dealt with flaky development tools like this since 1991, when I was writing multimedia audio utilities for Philips Electronics (Magnavox here in the states). Creative Labs developers were sending weekly builds of their sound card drivers to me for what would become Windows 3.0 With Multimedia Extensions. I never knew if a bug would be in my app or their driver. Aiiiyiiiyiiii!!!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Comments

Leave a Reply