Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 25th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.text.TextField;
  4.     public class FlashPlayer11Test extends Sprite {
  5.         public function FlashPlayer11Test() {
  6.             var tf:TextField = new TextField;
  7.             tf.x = tf.y = 10;
  8.             tf.width = tf.height = 465;
  9.             tf.text = JSON.stringify(tf, ["name", "x", "y", "width", "height"]);
  10.             addChild(tf);                    
  11.         }
  12.     }
  13. }