[AS3] 兩個 SWF event 傳黎傳去既方法

你仲想利用個 event 傳data ?

[actionscript3]
mother.addEventListener(CustomEvent.MODULE_CLOSE, onModuleClose)

function onModuleClose(e:*):void {

var data = e.data;

}

var data = {a:1, b:"hello"};

swf.dispatchEvent(new CustomEvent(CustomEvent.MODULE_CLOSE, data));

[/actionscript3]

PS

如果要玩 bubbling: 記得 extend 個陣 要 override 埋 clone 呢個 function!