大约有 67 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...; tem.loadAni(url); tem.on(Event.COMPLETE, this, function():void { longgu = tem.buildArmature(0); longgu.pos(dragronX, dragronY); parent.addChild(longgu); ...
来源: Laya_社区 发布时间: 20170406
... let mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(path); } onError() { trace("error"); ...
来源: Laya_社区 发布时间: 20190730
...成可点击的指针“小手的样子”,求大神解析 function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STO...
来源: Laya_社区 发布时间: 20170818
...e(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01...
来源: Laya_社区 发布时间: 20190117
...); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos...
来源: Laya_社区 发布时间: 20210813
...调试,最终发现是MiniSound的onCanPlay没有被调用,也就没有complete事件触发,同样的error事件也没有触发,于是就卡住了,触发不了批量加载全部完成的回调。 我猜测,是微信的InnerAudioContext实例,在设置了src属性之后,并...
来源: Laya_社区 发布时间: 20181026
...TempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Brows...
来源: Laya2.0_文档 发布时间: 20210715
...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
...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(poin...
来源: laya_api 发布时间: 20170929
...etBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(...
来源: Laya2.0_文档 发布时间: 20210715