摘要: import flash.text.TextField;import flash.text.TextFormat;var t:TextField = new TextField();t.defaultTextFormat = new TextFormat("微软雅黑",20);t.text="中文";t.autoSize = "left";trace(t.height);addChild(t);var ta:TextField = new TextField();ta.defaultTextFormat = new TextForma 阅读全文
posted @ 2013-04-15 22:48 晨祷 阅读(216) 评论(0) 推荐(0) 编辑
摘要: import flash.events.Event; this.addEventListener("qq",qq); if(this.dispatchEvent(new Event("qq",false,true))) { trace("sss") } function qq(evt:Event):void { //如果有这句,则不会输出"sss" evt.preventDefault(); } 阅读全文
posted @ 2013-04-15 22:46 晨祷 阅读(205) 评论(0) 推荐(0) 编辑