FLEX 事件机制-自定义事件介绍(flexceed)硬核推荐

随心笔谈1年前发布 编辑
160 0

xmlns:s=”library://ns.adobe.com/flex/spark”

xmlns:mx=”library://ns.adobe.com/flex/mx”

xmlns:comp=”*”

width=”100%” height=”100%”>

import flash.external.ExternalInterface;

import flash.system.Security;

import mx.controls.Alert;

import mx.events.FlexEvent;

public var callBackInfo:String=””;

public function doSend():void{

callBackInfo=input.text;

var myEve:MyEvent=new MyEvent(MyEvent.myEvent,false,false,callBackInfo);//派发事件 myEve.data is Object;

this.dispatchEvent(myEve);

}

]]>

© 版权声明

相关文章