[flexcoders] Can I detect the flash player version targeted by the compiler ( -target-player ? ) in my code

2009-01-05 Thread Jim Hayes
Apologies if this is a stupid question, but it's late, I'm tired and all out of brain cells :( I have an application with largely common code base that gets compiled to both AIR 1.5 (e.g. flash player 10) application and flash player in a web browser. I keep a separate flexbuilder project for

RE: [flexcoders] Can I detect the flash player version targeted by the compiler ( -target-player ? ) in my code

2009-01-05 Thread Jim Hayes
The last comment here : http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html looks quite relevant to my question as far as I can tell : quote Even better would be if I could use expressions in the conditionals themselves, so that I could write in my code: