We don't have a compile time constant right now, but I could add one.

There's an option that can be supplied now via the lzc command line or the
new URL options(...) list,

        "--flex-options=version=10.x,air,debug",

Internally that string is stored in the compiler options hashtable as

Compiler.FLEX_OPTIONS = "flexoptions"

And in  sc/SWF9External there's some code that parses out the version in
order to pass the flag
to the flex compiler. That's the only place it's used now.

I can add a javascript compile time constant for it. Can you file a JIRA
task and assign to me?


On Sat, Dec 11, 2010 at 9:34 AM, André Bargull <[email protected]>wrote:

> Is there any way to check the "flexversion" property at runtime resp. at
> compile-time? So something similar to the compile-time constants like
> "$swf10", "$swf9" etc. This is important when you want to import class
> definitions for swf10.1, for example.
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to