1 Reply Latest reply on Mar 23, 2011 11:14 AM by injpix

    use additional compiler arguments in  flex

    new flex guy

      hey frnds,

      i'm using -locale en_US -define=CONFIG::isAir,true -define=CONFIG::isFlash,false  additional aruments

       

      Could any one tell me how can i use it in .as file ?

        • 1. Re: use additional compiler arguments in  flex
          injpix Level 3

          I also have used conditional compilation in Flex to target different platforms (FlashPlayer and AIR).  I used the following in my compiler arguments field:

           

          -locale en_US -define+=CONFIG::AIR,true -define+=CONFIG::FLASH,false

           

           

          And then somewhere in my code I would have for instance:

           

          CONFIG::AIR
          {
              isAIR = true; // this line will execute with the compiler arguments above
          }

           

          CONFIG::FLASH
          {
              isAIR = false; // this line will NOT execute with the compiler arguments above
          }