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

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

1711. 播放声音出错,求指教 [ 78%]

...function playbgm() { SoundManager.playMusic("comp/bgm.mp3", 1, new Handler(this, bgmComplete)); } function bgmComplete() { console.log("播放完成"); }   附件 : --> 2018-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

1712. Steam扩展实例 · LayaAir3.4 · 引擎文档 · LAYABOX [ 78%]

...perty({type: Laya.Button}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { alert(extendLib.initializeSteam()); } } 构建发布Windows后,需要在exe的同级目录下,新建一个steam_appid.txt 文件,其中只包含 AppID。 (...

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

1713. 请问如何加载base64的图片 [ 78%]

...45050878 赞同来自: __proto.uploaderHandler=function (files) { var self=this; var file=files[0]; var reader=new FileReader(); reader.onload=function () { this.headIcon.loadImage(this.result); } reader.readAsDataURL(file); } 是这样显示的吗?我的为何也不显示,通过html的input上...

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

1714. [求助]无法使用loader预先加载 [ 78%]

...o.png", "res/mainpage/BtnYes.png" ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); Laya.loader.on(Event.ERROR, this, onError);   private function onAssetLoaded(texture:Texture):void{             //console.log("111...

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

1715. FrameAnimation complete事件回掉参数为undefinend [ 78%]

...ion complete事件回掉参数为undefinend var ani1:Laya.FrameAnimation = this.ani1; ani1.play(0,false); ani1.on(laya.events.Event.COMPLETE,this,this.onPlayEnd); onPlayEnd(evt) { //evt 居然是undefinend。事件机制还能用吗? } 2017-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1716. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 78%]

...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); } private function processHandler(data:Object):void { trace(data); } priva...

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

1717. 编译前(AS)和编译后(JavaScript)程序的行为是不一致的,求最佳实践和原理。 [ 78%]

...方式支持,之所以没有输出是由于你method的作用域错了,this指向的不是当前类,而是window,使用Handler可以直接传作用域(为当前类),所以Handler输出的结果是对的,建议使用Handler! 2016-12-13 0 2 分享 微博 QZONE 微信 为什么被折叠...

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

1718. Dialog限制拖动区域有什么方法 [ 78%]

...ion _onMouseDown(e:Event):void {             var point:Point = this.getMousePoint();             if (_dragArea.contains(point.x, point.y)) this.startDrag();             else this.stopDrag();         } 找到这段代码,改引擎,做判断,如果要...

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

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

...", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window...

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

1720. 苹果iOS审核Guideline 4.3 - Design [ 78%]

...nt or language, which is considered a form of spam. The next submission of this app may require a longer review time, and this app will not be eligible for an expedited review until this issue is resolved. Next Steps - Review the Design section of the App Store Review Guidelines. - Ensure your app i...

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