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

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

251. 如何阻止 点击 继续传递 [ 69%]

... 提交 2 个回复 ssqhu 赞同来自: private function onPauseBtnClick(e:Event):void          {             //阻止后续节点的监听器             e.stopPropagation();     }   用这个方法就可以阻止后面的事件了。 stopPropagation():void 防止对事...

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

252. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 69%]

...js:15946)     at Texture.__proto._onLoaded (laya.core.js:15750)     at EventHandler.__proto.runWith (laya.core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded (laya.core.js:14850)     at EventHand...

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

253. 超过最大调用堆栈大小 [ 68%]

...:8383");         output = socket.output;         socket.on(Event.OPEN, this, this.onSocketOpen);         socket.on(Event.CLOSE, this, this.onSocketClose);         socket.on(Event.MESSAGE, this, this.onMessageReveived);         socket.on(Event.ERROR, this, this...

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

254. 多UI层级的点击事件 [ 68%]

...的链接 提交 2 个回复 Laya_Aaron 赞同来自: 淡蓝 onclick(e:Event){ e.stopPropagation(); } 2018-09-03 1 1 分享 微博 QZONE 微信 晓风残月 赞同来自: button上设置mousethrough 有用没? 2018-09-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

255. 关于截屏的问题 [ 68%]

...1:48:56.524 1040-1438/? D/PowerManagerService: userActivityNoUpdateLocked: eventTime=160233968, event=2, flags=0x0, uid=1000 06-09 11:48:56.524 1040-1438/? D/PowerManagerNotifier: onUserActivity: event=2, uid=1000 06-09 11:48:56.524 1040-1438/? D/PowerManagerService: updateUserActivitySummaryLocked:...

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

256. 安装layaair2-cmd一直失败 [ 68%]

...bin-wrapper\node_modules\got\index.js:182:22)     at Object.onceWrapper (events.js:300:26)     at ClientRequest.emit (events.js:210:5)     at TLSSocket.socketErrorListener (_http_client.js:406:9)     at TLSSocket.emit (events.js:210:5)     at emitErrorNT (internal/streams/destroy.js:92:8) ...

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

257. unity 新建场景,预览报错。 [ 68%]

...0) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:266) UnityEngine.Experimental.UIElements.IMGUIContainer.Handl...

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

258. 碰撞检测关闭问题 [ 68%]

...击事件的传递。   例如(我用的javascript): button.on(Laya.Event.MOUSE_DOWN, null, (e)=>{ // 做一些事   // 终止事件传递 e.stopPropagation() })) 2018-05-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添...

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

259. 这样的panel请问如何实现比较好? [ 68%]

...按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不可见 this.layoutSeco...

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

260. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image[ 68%]

...ap; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLLoader; private var l:...

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