1 Reply Latest reply on Jan 11, 2008 7:33 AM by Gaurav J

    BUG - Switch statement & compiler

      I am overriding AccordionHeader. In the set Data method I have a switch statement. I dont think the location of the statement is relevant, but included for completeness. (MenuGroup is my own class and not relevant)

      If you have the following code Flex 3 \ FB 3 (both beta 3)

      override public function set data(value:Object):void
      var menuGroup:MenuGroup = value as MenuGroup;

      // examine the groupType to determine if we need \ want to change the style setting
      // on this particular header



      super.data = value;


      The compiler will fail with an 'An internal build error has occurred' error.

      Put in a default case statement such as

      case default:
      and all is well.

      regards BOb