大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0037 秒)
... this.mBitmapFont.loadFont("res/bitmapFont/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ init(); } function init(){ Laya.Text.registerBitmapFont(this.mFontName,this.mBitmapFont); } 2018-03-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...
来源: Laya_社区 发布时间: 20180329
...; Laya.loader.load(resArr,Handler.create(this,this.onLoaded)); } private function onLoaded():void{ //显示界面 var gameView:GameView = new GameView(); Laya.stage.addChil...
来源: Laya_社区 发布时间: 20180106
...= "#000000"; Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded)); } private onLoaded(): void { this.begin = new Begin(); Laya.stage.addChild(this.begin); } } new GameMain(); 2018-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20180829
...es/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代码如果把Laya.stage.size这行的注释去掉,运行时不能正常...
来源: Laya_社区 发布时间: 20170803
...al string packet_iidiid = 4; } 通过 ProtoBuf.load("protocol.proto", this.onLoaded); function onLoaded(err:any, root:any):void{ if (err) throw err; // Obtain message types var msgDefine:any = = root.lookup("protocols.packetc2g_select_gate"); var newMessage:any = msgDefine.create(); } 然后发现...
来源: Laya_社区 发布时间: 20170914
...aya.loader.load("res/atlas/comp.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 ...
来源: Laya_社区 发布时间: 20180329
...027); Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS)})(); function onLoaded(){ var karaok = new Karaok(); // new出来的内存 如何主动销毁? } })(window.LayaSample || (window.LayaSample={})); 2017-02-23 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170223
...l: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }运行会报错:见图: 求解~! 附件 : --> TestHtml.zip 2017-10-11 添加评论 免费...
来源: Laya_社区 发布时间: 20171011
....js:882) at Loader.__proto.complete (laya.core.js:14965) at Loader.__proto.onLoaded (laya.core.js:14933) at EventHandler.__proto.runWith (laya.core.js:1125) at HttpRequest.__proto.event (laya.core.js:882) at HttpRequest.__proto.complete (laya.core.js:14607) at HttpRequest.__proto._onLoad (laya.core....
来源: Laya_社区 发布时间: 20181015
...,400); swf=new MovieClip(); swf.load("data.swf"); swf.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(swf); } private function onLoaded():void { // TODO Auto Generated method stub swf.interval=500; } } } 2016-09-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20160918