3 Replies Latest reply on Oct 25, 2012 7:19 PM by mccoyjo

    Flash Builder 4.7 conditional compiling failed

    tolis.pas Level 1

      I installed Flash Builder 4.7 on my windows xp machine, and tried to migrate projects from FB 4.6. However in one of my projects I use conditional compiling, but I'm getting errors.For example in FB 4.6 I have this sample code:


      public class MyClass{



                import com.package.SomeClassOnlyForDebugging


           function someFunction():void{

                if (CONFIG::DEBUGGING){






      When I compiled it in FB 4.6 everything worked fine. However when I try to compile it in FB 4.7, then I get error on the conditional compiling only inside the function and not on the import statement. The only way I have found to overpass it is to go to Project>Properties>ActionScript Compiler and disable Enable strict type checking. But this is not a permanent solution.


      Am I doing something wrong, or is there some other way to do it?