[as3]
var functionGoFast:Function = goFast("yes");
checkBoxFast.addEventListener(clickType, functionGoFast);

function goFast(myVar:String):Function {
return function(evt:Event = null):void {
trace(myVar);
}
}

//checkBoxFast.removeEventListener(clickType, functionGoFast);
[/as3]

Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation