I have a task to run my flex app online and offline as well. I found that it could be done by setting the additional compiler argument: "-use network" to value true/false in flex project properties. I want to know how to set this (or any) compiler argument through my flex code. Please write...Thanks.
In general, you can't set compiler options in source code. They would execute at runtime, after the SWF already has been compiled and is running, and therefore it would be too late for the settings to affect compilation.
Gordon Smith, Adobe