flash on 2011-2-15

by heroboy
♥0 | Line 22 | Modified 2011-02-15 16:47:59 | MIT License
play

ActionScript3 source code

/**
 * Copyright heroboy ( http://wonderfl.net/user/heroboy )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/3Zaq
 */

package {
    import flash.text.TextField;
    import flash.display.*;
    import flash.ui.*;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var text:TextField = new TextField();
            text.width = 300;
            text.height = 50;
            var m:Object = Mouse;
            try{
            //text.text = "hello" + Mouse["registerCursor"].toString();
                
                text.appendText("hello:");
                //text.appendText(m.supportsNativeCursora);
                //m.supportsNativeCursor= 1;
                text.appendText(m.supportsNativeCursora);


            }
            catch(e:Error)
            {
                text.text = "error:"+e.message;
            }

            addChild(text);
            //trace(Mouse);
            //Mouse["registerCursor"]("",null);
        }
    }
}