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

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

361. 循环监听按钮,如何进行传参和接受参数 [ 83%]

...' + i) as Laya.Image;               console.log(e); e.on(Laya.Event.CLICK, this, this.onBtnClick); }   按钮事件 private onBtnClick(event:Laya.Event): void {         let b = event.currentTarget as Laya.Image; console.log('onClickLevel > ' + b.skin); this.removeSelf(); Lay...

来源: Laya_社区 发布时间: 20190802

362. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 83%]

...e { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800...

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

363. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 83%]

...e { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800...

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

364. laya.d3.component.animation.UVAnimations [ 83%]

...lasses | Index | Frames No Frames UVAnimationsProperties | Methods | Events Packagelaya.d3.component.animationClasspublic class UVAnimationsInheritanceUVAnimations KeyframeAnimations Component3D EventDispatcher Object UVAnimations 类用于创建UV动画组件。 Public Properties Hide Inheri...

来源: laya_api 发布时间: 20170603

365. 加载显示多个swf并显示 [ 83%]

...复 cuixueying 赞同来自: swf不支持预加载,不过你可以通过[Event(name = "loaded", type = "laya.events.Event")]监听swf是否已经loaded完成,进听一个Event.LOADED事件即可! 2017-04-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...

来源: Laya_社区 发布时间: 20170401

366. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 83%]

...读取到的数据是错的,然后就报错了。package { import laya.events.Event; import laya.net.Socket; import laya.utils.Byte; import laya.webgl.WebGL; public class SocketSample { public var socket:Socket; private var byte:Byte; public function SocketSample() { //初始化引擎 this.byte = ...

来源: Laya_社区 发布时间: 20180202

367. socket通讯返回数据 [ 83%]

...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); // this.s...

来源: Laya_社区 发布时间: 20180211

368. startDrag 的 Bug? [ 83%]

startDrag 的 Bug? aaa.on(Event.DRAG_MOVE, this, onDragMove); aaa.startDrag(new Rectangle(0, 0, 100, 100), true, 0, 200);   private function onDragMove(e:Event = null):void { // 正常移动时, bbb 会和 aaa 坐标一至, 释放鼠标后也正常, 但 // BUG 出现在鼠标释放后 当aaa 进...

来源: Laya_社区 发布时间: 20180530

369. 怎么监听程序关闭事件啊?? [ 83%]

...现在想监听程序关闭事件(就是关闭laya工具),尝试用Event.BLUR和Event.FOCUS才发现是监听游览器的,然后我用了Event.CLOSE,Event.END也是不可以,请问下是调用哪个方法呢??? 附件 : --> 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE ...

来源: Laya_社区 发布时间: 20170316

370. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 83%]

...逻辑处理。 2.1 支持的事件类型 LayaAir中的HttpRequest继承自EventDispatcher,因此支持多种事件类型,用于HTTP请求后的响应逻辑,常用的事件有: Event.PROGRESS:用于跟踪 HTTP 请求的上传和下载进度,例如文件下载时,值为1时表示已完...

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