2 Replies Latest reply on Dec 17, 2007 4:49 PM by dmurat

    FB3 Beta3 - organizing imports bug

    dmurat
      It seams that I have found the bug with organizing imports in FB Beta 3. When throw statement is used with errors outside from top level package, imports for those error classes are not added. Furthermore, if you add import manually, it is erased next time when FB organize imports. This can be circumvented by first declaring and initializing error variable of corresponding type, and then throwing it. For example, this will work:

      var error:IllegalOperationError = new IllegalOperationError("blabla");
      throw error;

      but this will exhibit described bug:

      throw new IllegalOperationError("blabla");

      I've found this in ActionScript editor. I didn't try in MXML editor.

      Regards,
      Damir Murat