4 Replies Latest reply on Aug 16, 2011 1:32 AM by _del_p_

    conditional compilation


      I'm using flashbuilder 4.5 (on windows) and for some reason I can't get conditional compilation to work when trying to pass in strings.

      I've tried the examples in this link http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html and for passing boolean values it works fine, but try to pass a string in and if fails (gives errors).


      Now I've done this before (quite a whlie ago now) and I seem to remember it just worked so something like this (from previous link) would work


      -define+=BUILD::TEST,'Blue'  (placed this into the Additional compiler arguments box under properties)


      then in the code



      public var testString : String;


      would then hold the word 'Blue'



      But what I am getting is errors like the below


      Errors like "1008: Attribute is invalid."


      "The initializer for a configuration value must be a compile time constant."


      Any ideas what I'm missing or is this not working properly now in 4.5 flashbuilder?