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

大约有 506 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

121. 怎么播放声音? [ 69%]

...:   var bg_sound:Laya.Sound =new Laya.Sound(); bg_sound.on(Laya.Event.COMPLETE,this,this.loadcom_f); bg_sound.on(Laya.Event.PROGRESS,this,this.loadcom_f); bg_sound.on(Laya.Event.ERROR,this,this.loadcom_f); bg_sound.load("res/bg.mp3"); private loadcom_f(e:Laya.Event):void{ console.log("-----------...

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

122. 网络通信 · LayaAir3.0文档 · LAYABOX [ 69%]

... "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求出错时调度。 * @eventType Event.ERROR * */ /*[Event(name = "error", type = "laya.events.Event")]*/ 2.1.4 在代码中怎么使用 Laya...

来源: Laya3.0_文档 发布时间: 20230719

123. laya.ui.FrameClip [ 69%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(poin...

来源: laya_api 发布时间: 20170422

124. xhr的on和once什么区别,官网例子 [ 68%]

...Request(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); 2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

125. 资源加载事件监听 [ 68%]

...载事件是否可以监听, 比如类似这样 Laya.stage.on(Laya.Event.COMPLETE, this, this.OnLoadLog); 2017-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 资源加载有Event.L...

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

126. spine动画放大后,遮罩显示不正常 [ 68%]

...     let mFactory = new Templet();         mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]);         mFactory.on(Event.ERROR, this, this.onError);         mFactory.loadAni(path);     }      onError() {         trace("error");   ...

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

127. 经验分享:如何控制龙骨动画的播放索引! [ 68%]

...a.init(800,600,WebGL); index=15; mFactory=new Templet(); mFactory.on(Event.COMPLETE,this,omTemLoaded); mFactory.loadAni('NewDragon/NewDragon.sk'); } private function omTemLoaded():void { mArmature=mFactory.buildArmature(0); Laya.stage.addChild(mArmature); Laya.stage.on(Event.CLICK,this,onClick); mAr...

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

128. 关于HttpRequest报错问题 [ 68%]

...e","application/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); }; fun...

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

129. 排坑:Laya.HttpRequest()无效 [ 68%]

...Request(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("http://www.baidu.com", "", "get", "text"); function processHandler(data) { console.log(data)...

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

130. laya.d3.animation.AnimationClip_API3.0 [ 67%]

...会忽略lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/animation/AnimationClip.ts:61 加载动画片段。 Parameters url: string 动画片段地址。 complete: Handler 完成回掉。load Returns void Globals "laya/d3/animation/Animati...

来源: Laya3.0_api 发布时间: 20231115