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

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

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

...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() { //创建第一个动画 var skeleton0: Laya.Skeleton; //从动画模板创建动...

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

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

...mplet(); 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 parseComplete():void { //创建第一个动画 var skel...

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

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

...emplet.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(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scal...

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

4. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 83%]

...s,Laya.Handler.create(this,this.onSuccess),Laya.Handler.create(this,this.onError)); } } private showMessage():void{ var tex:Laya.Text = new Laya.Text(); Laya.stage.addChild(tex); tex.text = "单击舞台播放和暂停"; tex.color = "#ffffff"; tex.fontSize = 100; tex.valign = "middle"; tex.align = "...

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

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

...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.Browser.width / 2, Laya.Browser.height / 2 + 100); this.ske...

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

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

...emplet.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.pos(Browser.width / 2, Browser.height / 2 + 100); this.skel...

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

7. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 80%]

...收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是我们处理网络消息的前提。 新建一个LayaAir空项目。声明一个Socket实例,声明一个Byte实例: ```typescript class ...

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

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

....getMedia(options, Handler.create(this, onSuccess), Handler.create(this, onError)); } } private function showMessage():void { var text:Text = new Text(); Laya.stage.addChild(text); text.text = "单击舞台播放和暂停"; text.color = "#FFFFFF"; text.fontSize = 100; text.valign = "middle"; text.al...

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

9. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 79%]

...收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必要的,这也是我们处理网络消息的前提。 ​ 这里我们用AS项目进行讲解,新建一个LayaAir的空项目。声明一个Socket的实例...

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

10. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 77%]

...r.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设...

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