大约有 82 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
...的代码触发了相关bug。 shiyang • 2020-09-09 16:39 你把img换成progress shiyang • 2020-09-09 16:44 laya.ui.js:3741 Uncaught TypeError: Cannot set property 'skin' of null at ProgressBar._skinLoaded (laya.ui.js:3741) at EventHandler.runWith (laya.core.js:998) at ResInfo.event (laya.core....
来源: Laya_社区 发布时间: 20200909
...nts.HTTPStatusEvent; import flash.events.IOErrorEvent; import flash.events.ProgressEvent; import flash.events.SecurityErrorEvent; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.net.URLRequestMethod; import flash.net.URLVariables; public cl...
来源: Laya_社区 发布时间: 20151217
...ew Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传输失...
来源: Laya_社区 发布时间: 20180315
... const elapsed = Date.now() - startTime; const progress = Math.min(elapsed / duration, 1); channel.volume = initialVolume + (targetVolume - initialVolume) * progress; if (progress === 1) { ...
来源: Laya_社区 发布时间: 20250930
...blic/Protected All Inherited Externals Only exported Menu Globals "laya/ui/ProgressBar" ProgressBar Class ProgressBar ProgressBar 组件显示内容的加载进度。 example 以下示例代码,创建了一个新的 ProgressBar 实例,设置了它的皮肤、位置、宽高、网格等信息,...
来源: Laya3.0_api 发布时间: 20231115
...: void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.pr...
来源: Laya3.0_文档 发布时间: 20251010
...l. ### 事件 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,而`upload`是一...
来源: Laya2.0_文档 发布时间: 20210714
...l. ### 事件 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,而`upload`是一...
来源: Laya2.0_文档 发布时间: 20210715
...包括 安卓跟苹果 MoreGame load(url:String, complete:Handler = null, progress:Handler = null):void[static] 加载场景及场景使用到的资源 Scene loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:...
来源: Laya2.0_api 发布时间: 20190513
...鼠标事件。 EventDispatcher load(url:String, complete:Handler = null, progress:Handler = null):void[static] 加载场景及场景使用到的资源 Scene loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:...
来源: Laya2.0_api 发布时间: 20190513