大约有 708 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
Laya_社区(372) Laya3.0_api(110) Laya2.0_api(105) laya_api(67) Laya2.0_文档(26) Laya2.0_示例(10) Laya3.0_文档(9) Laya_示例(9)
...erial cloneTo(destObject:*):void 克隆。 BaseMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodD...
来源: Laya2.0_api 发布时间: 20190513
...事件类型是否是鼠标事件。 EventDispatcher load(path:String, complete:Handler = null, aniMode:int = 0):void 通过加载直接创建动画 Skeleton loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意...
来源: Laya2.0_api 发布时间: 20190513
...l=" + 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); } function cb_onSuccess(response) { alert("response=" + response); // 成功输出:{"ret":1478136071} } function cb_onFail(mess...
来源: Laya_社区 发布时间: 20161103
...let = new Laya.SpineTemplet(Laya.SpineVersion.v4_0); templet.on(Laya.Event.COMPLETE, handler.caller, handler.method); templet.on(Laya.Event.ERROR, this, this.printError); templet.loadAni(url); } printError(e) { console.error(e); } } //激活启动类 new Main(); 附件 : --> TEST2.zip 2022-05-30 ...
来源: Laya_社区 发布时间: 20220530
...= new Laya.Animation(); ani.loadAnimation("catFly.ani"); ani.on(Laya.Event.COMPLETE, null, recover); function recover(): void { ani.removeSelf(); Laya.Pool.recover("deathEffect", ani); } return ani; } 附件 : --> 2019-10-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20191019
...的参数说明中,看到第二个参数是这么解释的: * @param complete 加载结束回调。根据url类型不同分为2种情况:1. url为String类型,也就是单个资源地址,如果加载成功,则回调参数值为加载完成的资源,否则为null;2. url为数...
来源: Laya_社区 发布时间: 20170804
...tionDomain.currentDomain); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onSwfLoaded); loader.load(new URLRequest("binarys.swf"),context); } protected function onSwfLoaded(event:Event):void { // TODO Auto-generated method stub var mc:MovieClip=event.target.content as MovieClip; mc.play();...
来源: Laya_社区 发布时间: 20151224
...动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("comp/skeleton/spineboy.sk"); } protected onExit() {}; private onError() { console.log("parse error"); } private...
来源: Laya_社区 发布时间: 20180905
...分享 微博 QZONE 微信 风信子 赞同来自: 没看懂,但是你的complete写在play后面不太好吧,闪烁可能是执行了多遍,后面的覆盖前面,看起来就闪烁,你是loop到底是了什么也不知道 2019-03-25 0 4 分享 微博 QZONE 微信 kura 赞同来自: https:...
来源: Laya_社区 发布时间: 20190325
...est: 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) { //加载完成返回的data是a...
来源: Laya_社区 发布时间: 20180201