大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
...,报的错是“ Function/laya.display:Animation/loadAtlas/laya.display:onLoaded() 的参数数量不匹配。应该有 1 个,当前为 2 个。”,我把Animation类里的function onLoaded(loadUrl:String)的参数多加一个就正常了,这个问题不知道算不算个bug algic • 2016-0...
来源: Laya_社区 发布时间: 20160904
...出来,点重新开始,才出来,新手求助! 代码如下,在 onLoaded 里注册的开始游戏按钮事件,点击 执行gameInit添加hero,这时候界面没有东西;当三秒后游戏结束,点重新开始,飞机才出来 function onLoaded() { start = new GameStartUI(); start....
来源: Laya_社区 发布时间: 20180911
...libs/laya.d3.js:37456:8) 05-18 09:55:36.987: I/0(27649): at ResInfo.onLoaded (http://stand.alone.version/lib ... 189:61) 05-18 09:55:36.987: I/0(27649): at EventHandler.__proto.runWith (http://stand.alone.version/libs/laya.core.js:726:27) 05-18 09:55:36.987: I/0(27649): at ResIn...
来源: Laya_社区 发布时间: 20190518
...zontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool.recover("sg_sign",Laya.sg_sign); Laya.sg_in...
来源: Laya_社区 发布时间: 20170725
...//E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:697:26) at ResInfo.onLoaded (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12723:28) at EventHandler.__proto.runWith (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:713:27) at ResInfo.__proto.event (file:///E:/Lay...
来源: Laya_社区 发布时间: 20171226
... Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loader.getRes("hero/hero_down2.jpg"); var hero_down3=Laya.loade...
来源: Laya_社区 发布时间: 20170330
...d property 'enable' of undefined preload.js:55 at HTMLScriptElement.script.onload (file:///E:/Laya/QPlane2/bin/libs/laya.core.js:22147:39) TypeError: Cannot read property 'enable' of undefined laya.core.js:22147 at HTMLScriptElement.script.onload (file:///E:/Laya/QPlane2/bin/libs/laya.core.js:22147:...
来源: Laya_社区 发布时间: 20190821
...beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); } 上图为在layaIDE中的显示效果。 不知道具体是什么原因,希望得到大家的指点。谢谢 操作系统:MacOS La...
来源: Laya_社区 发布时间: 20180529
...:/Users/Kevin/Desktop/test/AirWar/AirWar09/src/GameInfo.js:12:22) at onLoaded (file:///C:/Users/Kevin/Desktop/test/AirWar/AirWar09/src/Game.js:44:25) at EventHandler.__proto.runWith (file:///C:/Users/Kevin/Desktop/test/AirWar/AirWar09/bin/libs/laya.core.js:688:60) at ResInfo.__prot...
来源: Laya_社区 发布时间: 20171118
...impoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolani"); this.swimpoolani.int...
来源: Laya_社区 发布时间: 20190805