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

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

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

...equest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(i...

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

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

...equest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(i...

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

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

...equest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(i...

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

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

...rate of the AudioContext var frameCount = audioCtx.sampleRate * 2.0; var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; c...

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