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

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

1711. 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

1712. 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

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

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

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

1714. 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

1715. 苹果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

1716. 二进制图片(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

1717. 苹果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_社区 发布时间: 20200420

1718. out.writeShort is not a function [ 77%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...

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

1719. 注册宏定义与使用宏(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 77%]

....__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE...

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

1720. 注册宏定义与使用宏(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 77%]

....__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE...

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