/*** 分发事件到事件流中。* this.node.dispatchEvent(new cc.Event.EventCustom("name",是否向上传递))* true:向上传递,传递到父节点。* false:向下传递*/var e = new cc.Event.EventCustom("事件名称 string",true)e.detail = { name:" data"}this.node.dispatchEvent(e)