Flash V2组件基础件开发:ActionRegistry消息分派器。(4) dispatchAction (action_type, args); } else { trace ("invalid action type or args"); } } else { trace ("invalid action format"); } } else { trace ("invalid action call"); } }
function parse_body (type:String, body:String) : Array { var funcName = type+"Handler"; if (typeof (this[funcName]) == "function") return this[funcName].apply (this, [body]); else { trace ("action handler not found");