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

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

251. 多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

252. 安装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

253. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sp...

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

254. 怎么播放声音? [ 68%]

...写了:   var bg_sound:Laya.Sound =new Laya.Sound(); bg_sound.on(Laya.Event.COMPLETE,this,this.loadcom_f); bg_sound.on(Laya.Event.PROGRESS,this,this.loadcom_f); bg_sound.on(Laya.Event.ERROR,this,this.loadcom_f); bg_sound.load("res/bg.mp3"); private loadcom_f(e:Laya.Event):void{ console.log("-----...

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

255. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 68%]

...?在事件中用什么方法指向image本身。as3中是侦听器接受event事件,然后用event.targe指向。layaair折腾半天,搞不明白image组件,sprite.loadImageLaya.loader.load如果用for循环操作,响应事件中用什么方法指向事件的发起对象?原来用e.ta...

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

256. 使用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

257. 2D物理-复合碰撞器 [ 68%]

...LE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); } createBox() { const width = 300, height = 20; const posx = Laya.Browser.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(width + height * 2, width + height * 2); b...

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

258. 创建树Tree 该怎么回调mouseHandler 形参该传什么 [ 68%]

...his,onTreeHandler); function onTreeHandler(e,index) {    if(e.type==Laya.Event.CLICK)   {   } } 2017-06-26 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z298959 相关问题 骨骼动画播放完后的回调时间 ios原生回调问...

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

259. Animation 播放完成回调有参数吗 [ 68%]

Animation 播放完成回调有参数吗 Animation.on(Event.COMPLETE, this, bfwc); function bfwc(e){         console.log(e.target.name); }    是错误的 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

260. LayaFlash针对资源的加载是同步还是异步? [ 68%]

...fash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.net.URLRequest; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { ...

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