Skip to content

Instantly share code, notes, and snippets.

@darkredz
Created April 2, 2013 16:27
Show Gist options
  • Select an option

  • Save darkredz/5293642 to your computer and use it in GitHub Desktop.

Select an option

Save darkredz/5293642 to your computer and use it in GitHub Desktop.
AS3 conditional compilation
//additional compiler options: -define+=DEFINE::IOS,true
package
{
DEFINE::IOS
{
// import some IOS only stuff
}
public class CoolGame extends Sprite
{
DEFINE::ANDROID
{
// do android only stuff
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment