Skip to content

Instantly share code, notes, and snippets.

@9re
Created October 20, 2011 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9re/1300622 to your computer and use it in GitHub Desktop.
Save 9re/1300622 to your computer and use it in GitHub Desktop.
targeting FlashPlayer11 by compiler options
mxmlc FlashPlayer11Test.as -target-player=11.0.0 -swf-version=13
package {
import flash.display.Sprite;
import flash.text.TextField;
public class FlashPlayer11Test extends Sprite {
public function FlashPlayer11Test() {
var tf:TextField = new TextField;
tf.x = tf.y = 10;
tf.width = tf.height = 465;
tf.text = JSON.stringify(tf, ["name", "x", "y", "width", "height"]);
addChild(tf);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment