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

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

1. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 100%]

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

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

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

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

3. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 98%]

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

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

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

...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. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 87%]

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

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

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

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