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

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

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

...建一个script标签。 ` script.src = "demo1.js";`设置要加载的js的路径。 ` script.onload = ......`和` script.onerror =.... `分别是加载完成和加载失败的回调函数。 ` Browser.document.body.appendChild(script);`把创建的script标签添加到页面。 `var client:Object =...

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

292. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 22%]

...(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y = Laya.stage.height/2; this.sprite.size(51...

来源: Laya3.0_文档 发布时间: 20251010