First name the outermost folder for storing pictures resources
changeBj: function(){
var url = ‘globalUI/video/gVideoPlayClick’; < /span>
var _this = this; cc.loader.loadRes(url,cc.SpriteFrame,function(err,spriteFrame)
{ < /span>
_this.isPlay.spriteFrame = spriteFrame; span>
});
< span class="hljs-function">< span class="hlj s-keyword"> } span>
First name the outermost folder that stores the picture resources
< p> changeBj: function(){
var url = ‘globalUI/video/gVideoPlayClick’;
var _this = this; cc.loader.loadRes(url,cc.SpriteFrame,function(err,spriteFrame)
{
_this.isPlay.spriteFrame = spriteFrame;
});
}