大约有 1,653 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1154) Laya3.0_api(151) Laya2.0_api(106) laya_api(97) Laya2.0_文档(85) Laya3.0_文档(42) Laya2.0_示例(9) Laya_示例(9)
...tion init():void { var assetArr:Array=[ {url:"res/sound/music_gameplay.mp3", type:Loader.SOUND}, {url:"res/sound/button.mp3", type:Loader.SOUND}, {url:"res/sound/mob_true.mp3", type:Loader.SOUND}, {url:"...
来源: Laya_社区 发布时间: 20181112
...Handler.create(this,onProgress,null,false)); private var assetArr:Array=[ {url:"sound/bgMusic.mp3", type:Loader.SOUND}, {url:"sound/button.mp3", type:Loader.SOUND}, {url:"sound/error.mp3", type:Loader.SOUND}, {url:"sound/getXing.mp3", type:Loader.SOUND}, {url:...
来源: Laya_社区 发布时间: 20180531
...oleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUrls("die",6),"dizziness"); //循环播放动画 this.roleAni.play(0,true,"dizziness"); } /** * 创建一组动画的url数组(美术资源地址数组) * aniName 动作的名称,用于生成url * length 动画最后一...
来源: Laya2.0_文档 发布时间: 20210715
Laya.Animation.createFrames,用图集url加载的播放顺序不对,用图集Array加载的播放顺序对,咋回事? Laya.Animation.createFrames,用图集url加载的播放顺序不对,用图集Array加载的播放顺序对,咋回事? //播放正常 Laya.Animation.createFrames(["fi...
来源: Laya_社区 发布时间: 20170908
...-only] 本对象所封装的原生 XMLHttpRequest 引用。 HttpRequest url : String[read-only] 请求的地址。HttpRequestPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher has...
来源: Laya2.0_api 发布时间: 20190513
...出,在手机上总是得到失败输出呢? function myfunc() { var url = "http://43.254.151.248/sf_serve ... 3B%3B alert("url=" + url); var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, null, cb_onSuccess); req.on(laya.events.Event.ERROR, null, cb_onFail); req.send(url);...
来源: Laya_社区 发布时间: 20161103
对象池的使用 private function creatRen(lei):void { var url:String switch(lei){ case 1: url = "tu/白.png" break; case 2: url = "tu/花旦.png" break; case 3: url = "tu/zhadan.png" break; } var nan:Image = Pool.getItemByClass("nam", Image); nan.skin = url; nan.x = Math.random() * 600 + 80; nan...
来源: Laya_社区 发布时间: 20171226
...资源 1.bmp _proto.MyHttpGet = function() { var url = "http://192.168.8.35:80/singer/1.bmp"; var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, this, cb_onSuccess); req.on(laya.events.Event.ERROR, this, cb_onFail); ...
来源: Laya_社区 发布时间: 20170103
不带格式后缀的图片无法成功加载 let url = 'http://sf6-be-pack.pglstatp-toutiao.com/obj/ad.union.api/e285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = n...
来源: Laya_社区 发布时间: 20211026
...源clearRes清除之后下次再用到load时加载失败 public LoadImg(url:string):void { Laya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有...
来源: Laya_社区 发布时间: 20180109