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

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

441. 关于遍历产生的sprite的点击事件,急,大神帮看哈 [ 68%]

...for遍历下对sp进行CLICK的监听即可,sp.size(xxx,xxx);sp.on(Event.CLICK,this,onSpClick) 3、点击sp时,直接获取sp.index值即可(e.target.index)! 2017-02-21 1 0 分享 微博 QZONE 微信 lift6220819 赞同来自: q395212409 Laya.init(640,1010); Laya.stage.scaleMode = Laya....

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

442. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 68%]

...this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

443. 3D中的Animator如何从指定的某一帧开始播放动画 [ 68%]

...); animator.addClip(totalAnimationClip,"runShoot",startFrame); animator.on(Event.STOPPED, this, this.removeClip); animator.on(Event.COMPLETE, this, this.removeClip); animator.play("runShoot"); 2018-07-26 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个要在unity 里面进行切片,...

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

444. laya.d3.core.BaseCamera_API3.0 [ 68%]

...ld addChildAt addChildren addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

来源: Laya3.0_api 发布时间: 20231115

445. laya.d3.core.light.SpotLight_API3.0 [ 68%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

来源: Laya3.0_api 发布时间: 20231115

446. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 68%]

...: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: on(Event.MOUSE_DOWN,this,onClick); 试一下吧  onclick 函数里再打印log 2017-12-13 0 10 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个进度条 var 为pro 另外一张图的类继承了之前页面发布生成...

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

447. 关于HttpRequest报错问题 [ 68%]

...nt-Type","application/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); ...

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

448. tweenline label事件诡异 [ 68%]

...的都会同时播放 这里不太了解 3.官网上绑定的事件 是写Event.LABEL 实际上这里输出来是空的 我后面改成了 "label"才可以触发事件 2017-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

449. 排坑:Laya.HttpRequest()无效 [ 68%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("http://www.baidu.com", "", "get", "text"); function processHandler(data) { console.log...

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

450. swf预加载问题 [ 68%]

...会有问题。package util { import laya.ani.swf.MovieClip; import laya.events.Event; import laya.events.EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public class BeforLoader extends EventDispatcher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; private...

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