3

I'm doing the following:

CONFIG::TEST{
    rootURL = "myTestURL";
}

CONFIG::PROD{
    rootURL = "myProdURL";
}

In compiler arguments I have this:

-locale en_US -define+=CONFIG::AIR,true -define+=CONFIG::WEB,false 
-show-unused-type-selector-warnings=false 
-define+=CONFIG::PROD,false  -define+=CONFIG::TEST,true

But I'm getting errors for them both:

 Access of undefined property PROD.
 Access of undefined property TEST.

What is extremely odd is that this code works on my windows machine, but not on my mac. I've tried various things -- doing a clean checkout of code, cleaning the project, reinstalling Flash Builder. I also tried changing the order of the arguments, placing the last two in front of the selector warnings. That didn't help either.

Has anyone seen this before?

Florent
  • 12,310
  • 10
  • 49
  • 58
David
  • 703
  • 1
  • 15
  • 31
  • Do you have linebreaks in there (when you entered them in the project properties)? Maybe that is messing up going from win -> mac, though I've never seen it happen. You can inspect your `.actionScriptProperties` file to see what it contains and/or replace the linebreaks w/spaces. – Sunil D. Sep 07 '12 at 23:33
  • No, I added linebreaks just for formatting here. But thanks for suggestion. – David Sep 08 '12 at 12:57
  • You have unclosed braces in your post -- is that just a typo? – Marty Pitt Sep 10 '12 at 06:35
  • That was a typo that was fixed, thanks. – David Sep 10 '12 at 22:17

1 Answers1

0

Try to set first -define=CONFIG::AIR,true without += or use -load-config+=configs.xml

<?xml version="1.0" encoding="utf-8"?>
<flex-config>
  <compiler>
    <define append="true">
      <name>CONFIG::AIR</name>
      <value>true</value>
    </define>
     ...
  </compiler>
</flex-config>
Ivan Dyachenko
  • 1,348
  • 9
  • 16