flash on 2010-11-4
♥0 |
Line 25 |
Modified 2010-11-04 02:33:02 |
MIT License
archived:2017-03-20 02:40:07
ActionScript3 source code
/**
* Copyright geko ( http://wonderfl.net/user/geko )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/f6Tm
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
public class FlashTest extends Sprite {
public var txt:TextField;
public function FlashTest() {
txt = addChild(new TextField()) as TextField;
txt.width = stage.stageWidth;
txt.height = stage.stageHeight;
txt.mouseEnabled = false;
var obj:Object = new Object;
obj.a = "a";
obj.b = "b";
trace("a");
trace(obj.length);
trace(obj.hasOwnProperty("a"));
trace(this.hasOwnProperty("trace"));
trace("b");
}
public function trace(...str):void{
txt.appendText("\n"+str.toString());
txt.scrollV = txt.maxScrollV;
}
}
}