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

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

151. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 68%]

...var sp:Sprite = new Sprite(); var 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是arra...

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

152. httpRequest send返回Request failed Status:0 [ 68%]

...aya.HttpRequest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send(url, "", "get", "arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) ...

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

153. laya.components.AnimationClip2D_API3.0 [ 67%]

...All Inherited Externals Only exported Menu Globals "laya/components/AnimationClip2D" AnimationClip2D Class AnimationClip2D Hierarchy Resource AnimationClip2D Index Constructors constructor Properties _id destroyedImmediately islooping lock name url uuid DEBUG Accessors cpuMemory destroyed gpuMemory ...

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

154. 计时器-延迟执行 [ 67%]

...CK, this, onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, onComplete1); } function onDecreaseAlpha2(e) { //移除鼠标单击事件 button2.off(Event.CLICK, this, onDecreaseAlpha2); //定时执行一次(基于帧率) Laya.timer.frameOnce(60, this, onComplete2); } fu...

来源: Laya_示例 发布时间: 20250312

155. laya.media.VideoTexture_API3.0 [ 67%]

...hasListener isCreateFromURL load loadedmetadata off offAll offAllCaller on once pause play destroyUnusedResources Constructors constructor new VideoTexture(): VideoTexture Overrides BaseTexture.constructor Defined in laya/media/VideoTexture.ts:33 创建VideoTexture对象, Returns VideoTexture Prop...

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

156. 计时器-延迟执行 [ 66%]

...his, this.onDecreaseAlpha1); //定时执行一次(间隔时间) Laya.timer.once(3000, this, this.onComplete1); } onDecreaseAlpha2(e) { const Event = Laya.Event; //移除鼠标单击事件 this.button2.off(Event.CLICK, this, this.onDecreaseAlpha2); //定时执行一次(基于帧率) Laya.timer.frameO...

来源: Laya2.0_示例 发布时间: 20250312

157. laya.d3.core.Sprite3D_API3.0 [ 66%]

...ter clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt re...

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

158. 在native下 Laya.Browser.window.Blob不存在 [ 66%]

...: donloadImageTest: function (ss) { var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成...

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

159. js进度,进度,js场景进度效果 [ 66%]

...载进度 - 由于进度太快无法看到一个虚假的效果 Laya.timer.once(i * 100, this, function() { this.Progress.schedule.value = num; this.Progress.percentage.text = (num * 100).toFixed() + '%'; if (num >= 1) { this.run(); } }); }; p.run = function() { Laya.timer.once(300, this, functio...

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

160. 定时器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...果。 1. 帧间隔 1.1 定时执行一次 (基于帧率) Laya.timer.frameOnce,定义如下: /** * 定时执行一次(基于帧率)。 * @param delay 延迟几帧(单位为帧)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param args 回调参数。 * @param c...

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