从一个scene跳转到另一个scene的代码以及一些控件代码

cc.find('Canvas').runAction(cc.sequence(cc.fadeOut(1.0),cc.callFunc(function(){
            cc.director.loadScene('WAR');})))  


this.node.getComponent(cc.ProgressBar).progress  =  。。。给进度条添加数据


this.node.on(cc.Node.EventType.TOUCH_START, function (event) {      。。。     }) 给按钮添加一个点击事件


this.node.on(GameEvent.csvLoadComplete, function(){that.pub_beginShow(GameData.player.map,
        GameData.player.position)})
侦听自定义事件的时候,如果用函数接收,记得要用function(){}

你可能感兴趣的:(creator)