PDA

View Full Version : conditional compilation of AIR only features


simeyla
08-07-2008, 10:21 PM
i have code such as this :

addEventListener(MouseEvent.RIGHT_MOUSE_DOWN, rightMouseDown);

in my application for AIR.

when i deploy it for web I get a compile error telling me it isnt supported in a non AIR deployment.

How can i conditionally compile for this. I want to be able to add AIR specific features but use the same codebase to deploy.

-simon

Stealth86
08-08-2008, 12:19 AM
Google is your friend... (http://www.google.ca/search?q=conditionally+compile+flex+3)