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

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

221. Ignored attempt to cancel a touchmove event with cancelable=false [ 89%]

Ignored attempt to cancel a touchmove event with cancelable=false 在华为荣耀20  安卓10系统下,手机 触摸点击速度快一些,会导致元素鼠标事件消失,但是舞台事件还可以执行 每次点击报下面的警告, 在laya.core源码里面加上判断后,     (...

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

222. 向官方反映1.75引擎库后 事件执行 发生的bug [ 89%]

...      *执行事件处理。         */         __proto.runEvent=function(){             var len=this._eventList.length;             if (!len)return;             var _this=this;             var i=0;             var localevnetList = this._e...

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

223. 鼠标交互-拖动 [ 89%]

...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Rectangle = Laya.Rectangle; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../../res/apes/monkey2.png"; var ape, dragRegion; (...

来源: Laya_示例 发布时间: 20240930

224. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 89%]

... import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { ...

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

225. socket.sent [ 89%]

...接 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); } private...

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

226. 最新版本IDE,如何获取http返回的json数据 [ 89%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler);  var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData...

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

227. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 89%]

...实例化socket之后四个事件是我们必须监听的: ```typescript Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是...

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

228. 鼠标交互-拖动 [ 89%]

...eApe(); this.showDragRegion(); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(ApePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.x = Laya.stag...

来源: Laya2.0_示例 发布时间: 20240930

229. 关于mouseThrough设计原理问题? [ 89%]

...hrough 的设计原理,如果sprite对象没有设置点击事件(如 Event.CLICK),那么 sprite.mouseThrough = false;设置是没有效果的,这样设计是不是有问题?var a:Sprite = new Sprite(); a.graphics.drawRect(0,0,200, 200, "#00ff00"); a.size(200, 200); a.pos(0, 0); a.on(Even...

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

230. [LayaAir3]挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } 点击就报错 [ 89%]

[LayaAir3]挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } 点击就报错  挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown);} 点击就报错 附件 : --> 2023-12-20 添加评论 ...

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