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

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

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

...te = new Sprite(); var xhr:HttpRequest = new HttpRequest(); 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

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

...= new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.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. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 62%]

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

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

...r httpreq:Laya.HttpRequest = new Laya.HttpRequest(); httpreq.on(Laya.Event.COMPLETE,this,this.completeHandler); httpreq.on(Laya.Event.ERROR,this,this.errorHandler); httpreq.send("demo1.js"); } private completeHandler(e:any):void{ var script:any = Laya.Browser.document.createElement("script"); Laya.B...

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