• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 13 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0037 秒)

1. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 100%]

...1000, 900); //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseComplete); templet.on(Event.ERROR, this, onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); } private function onError():void { trace("parse error"); } private function parseC...

来源: Laya2.0_文档 发布时间: 20210715

2. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 98%]

...L); //创建动画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() { //...

来源: Laya2.0_文档 发布时间: 20210715

3. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 96%]

...动画模板 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("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第一个...

来源: Laya2.0_文档 发布时间: 20210715

4. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 83%]

...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

5. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 80%]

...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

6. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 80%]

...TempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private function parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton....

来源: Laya2.0_文档 发布时间: 20210715

7. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 66%]

...it(500,500); var httpreq:HttpRequest = new HttpRequest(); httpreq.on(Event.COMPLETE,this,this.completeHandler); httpreq.on(Event.ERROR,this,this.errorHandler); httpreq.send("demo1.js"); } private function completeHandler(e:Object):void { var script:Object = Browser.document.createElement("script"); ...

来源: Laya2.0_文档 发布时间: 20210715

8. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 61%]

...Request(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); } private function processHandler(data:Object):void { trace(data)...

来源: Laya2.0_文档 发布时间: 20210715

9. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 57%]

...Request(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); function processHandler(data){ console.log(data); } function erro...

来源: Laya2.0_文档 发布时间: 20210714

10. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 57%]

...st(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.on(Laya.Event.PROGRESS, this, this.processHandler); xhr.send("res/data.data", "", "get", "text"); console.log("aaaa"); } private ...

来源: Laya2.0_文档 发布时间: 20210715