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

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

91. 两个问题都关于LayaAir的ios真机 [ 75%]

...有个变暗的效果 statenum是1的按钮, /** * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件侦听处理函数。 * @param e Event 对象。 */ protected function onMouse(e:Event):void { if (toggle === false &...

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

92. 精灵添加名称 [ 75%]

...  sp = project.drawsomething(20, 20+60*i, "#eeb9b3");         sp.on(Event.CLICK,this, onsp);         Laya.stage.addChild(sp);   }   private function onsp(e:Event){              console.log("监听到按钮"+e.target);              console.log((e.target.getChildAt(0) as ...

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

93. 无法触发浏览器文件上传框 [ 75%]

...te(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(skin, '上传文件'); button.labelSize = 12; button.labelColors = '#000000,#000000,#0000...

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

94. http无响应 [ 75%]

... this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://111.73.45.19/index.php/Tgy/tgyPost', 'username=c11111&pas...

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

95. sound manager在MOUSE_OVER事件中无法播放 [ 74%]

...Stage = Laya.Stage;     import Text = Laya.Text;     import Event = Laya.Event;     import SoundManager = Laya.SoundManager;     import Browser = Laya.Browser;     import Handler = Laya.Handler;     import WebGL = Laya.WebGL;      export class Sound...

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

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

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

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

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

98. 鼠标点击穿透问题 [ 74%]

...4892 关注: 2 人 cuixueying • 2016-01-07 16:04 private function init(e:Event=null):void { var sp1:Sprite=new Sprite(); sp1.graphics.beginFill(0xFF00FF); sp1.graphics.drawRect(100,100,200,200); sp1.graphics.endFill(); addChild(sp1); sp1.addEventListener(MouseEvent.CLICK,onSp1); var sp2:Sprite=new...

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

99. 分享:销毁龙骨动画! [ 73%]

...ton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; private var mArmature:...

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

100. 为什么MovieClip不能侦听点击事件 [ 73%]

为什么MovieClip不能侦听点击事件 对movieclip注册侦听event.click事件,点击movieclip不会执行侦听的click函数 2016-06-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同...

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