• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 825 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0062 秒)

511. 请问UI之间的场景切换要怎么写 [ 56%]

...e.screenMode = "horizontal"; 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....

来源: Laya_社区 发布时间: 20170725

512. 音频无法播放 [ 56%]

...播放 Laya.SoundManager.playMusic('res/sound/'+'fail'+'.wav',1, new Laya.Handler(null,function(){ alert('123') })); 在chrome下 提示图片这个警告,,,手机上也没有声音 附件 : --> 2018-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

来源: Laya_社区 发布时间: 20180403

513. 关于stage的size问题 [ 56%]

...aya.loader.load([{ url: "res/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

514. js中使用sharedMesh报错 [ 55%]

...plete (file:///E:/LayaWorkspace/javaScriptLaya/src/warehouse.js:129:52) at Handler.__proto.run (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:693:26) at ResInfo.onLoaded (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12657:28) at EventHandler.__proto.runWith (file:///...

来源: Laya_社区 发布时间: 20171219

515. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 55%]

... xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; //.......这里处理...

来源: Laya2.0_文档 发布时间: 20210714

516. Dialog的popupEffect是不是有bug [ 55%]

...566 赞同来自: 我也碰到这个问题了。 Dialog.manager.popupEffectHandler = Handler.create(this,(e)=>{                 var dialog:Dialog = <Dialog>e;                 dialog.y = - dialog.height;                 var yy:number = (Laya.st...

来源: Laya_社区 发布时间: 20170510

517. 百度小游戏 内存不断增大的情况 [ 55%]

...init(600,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var testView=new TestView(); Laya.stage....

来源: Laya_社区 发布时间: 20190517

518. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 55%]

...,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` ...

来源: Laya2.0_文档 发布时间: 20210715

519. 预设对象池回收后再创建报错 [ 55%]

...先声明一个预设变量{Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete));}private function onComplete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变...

来源: Laya_社区 发布时间: 20200104

520. Cannot read property 'load' of null [ 55%]

...p/28.jpg", "res/img/map/29.jpg", ]; Laya.loader.load(this.skins,laya.utils.Handler.create(this, this.LoadSuccess,null,false)); } private LoadSuccess() { ViewManager.getInstance().CreateView(contant.loginId,new LoginView()); ViewManager.getInstance().ShowView(contant.loginId); } public SwictMap(index...

来源: Laya_社区 发布时间: 20171124