I have an AS3 project which runs both on mobile devices and on the web. They share the same code base and to deal with the Air vs web SDK differences, conditional compilation is being used. The problem is that when opening the web version, IntelliJ starts complaining about Air functionality not being found, even though the project compiles without any problems. To "solve" this, I created mock objects simply to get rid of the red squigly lines throughout my code.
IntelliJ is smart enough to pull the compiler constants from my build configuration and provide code hinting for them. But if a value is false, it will still check the code within the block for errors. Is it possible to have IntelliJ take into account the value? Or what would a better solution be for my problem?