大约有 82 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...标事件。 EventDispatcher load(url:String, complete:Handler = null, progress:Handler = null):void[static] 加载场景及场景使用到的资源 Scene loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2...
来源: Laya2.0_api 发布时间: 20190513
...533", } alert(JSON.stringify(data)); hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); var headers = []; headers.push("Content-Type"); headers.push("application/json"); h...
来源: Laya_社区 发布时间: 20170620
... hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send(NameJosn, nu...
来源: Laya_社区 发布时间: 20160626
...ic static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Text; public skin_btn_use:Laya.Image; private skin_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(Item....
来源: Laya_社区 发布时间: 20180828
... } }) loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预...
来源: Laya_社区 发布时间: 20190514
...图3-1所示。 (图3-1) 在2D预制体中,创建一个进度条(Progress),因为血条有当前血量和总体血量构成,因此Progress正好符合要求。并且血条上面使用Label显示人物的名字。另外注意Prefab的根节点Box的size最好改为2的N次幂,这符...
来源: Laya3.0_文档 发布时间: 20251010
...值。*/ static LOADED: string; /** 定义 progress 事件对象的 type 属性值。*/ static PROGRESS: string; /** 定义 input 事件对象的 type 属性值。*/ static INPUT: string; /** 定义 render 事...
来源: Laya_社区 发布时间: 20170601
...r.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且也有我们打印...
来源: Laya_社区 发布时间: 20160722
...,错误事件等 /** * 请求进度改变时调度。 * @eventType Event.PROGRESS * */ /*[Event(name = "progress", type = "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求出错时调度...
来源: Laya3.0_文档 发布时间: 20250104
...描边会报错 QQ玩一玩中不支持带有美元符号的命名,如:progress$bar.png 问题状态 最新活动: 2018-08-08 10:48 浏览: 1794 关注: 3 人 CrossCrush • 2018-08-31 19:05 没有解决,后面我们决定不用玩一玩的原生接入了,改成H5方式接入。不然还有...
来源: Laya_社区 发布时间: 20180619