a.mxml -> parent
b.mxml -> sub
============== b.mxml ==================
[mx:Metadata]
[Event(name="settingOver", type="flash.events.Event")]
[/mx:Metadata]
..
..
..
var e:Event = new Event("settingOver");
this.dispatchEvent(e);
..
..
============== a.mxml =====================
var _b:b;
_b.addEventListener("settingOver", settingOverFunction);
..
..
public function settingOverFunction(e:Event):void
{
// do something
}
Wednesday, 6 January 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment