大约有 160 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...caleMode = Stage.SCALE_FULL; Stat.show(); createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图http://layaair.ldc.layabox.com/api/ function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建...
来源: Laya_社区 发布时间: 20171205
...、mouseOut 就能复现 Enheng • 2022-05-05 17:24 this.sp.on(Laya.Event.MOUSE_DOWN, this, this.text) this.sp.on(Laya.Event.MOUSE_OUT, this,this.text) Enheng • 2022-05-05 17:26 按道理来说,我未移出只做点击动作,应该只执行一遍text(),但是它执行了两遍 Laya_Yan ...
来源: Laya_社区 发布时间: 20220424
...ne.getChildByName('VideoNode') as Laya.VideoNode; Laya.stage.on(Laya.Event.MOUSE_DOWN,this, ()=>{ console.error('Laya.Event.MOUSE_DOWN'); video.play(); }); 很简单的结构,只有在微信上播放不了 1677851971用户 • 2024-03-16 19:56 测试可以播放了,就是手机微信上视频...
来源: Laya_社区 发布时间: 20230825
...// Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) UI组件脚本就已经介绍完了,再复杂的UI都可以通过勾选组件声明,让ID...
来源: Laya3.0_文档 发布时间: 20251010
...件没有出发 srpite 绑定startDrag事件没有出发 football.on(Event.MOUSE_DOWN, this, onStartDrag(e)); football 是一个sprite function onStartDrag(e){ alert("拖动事件") } 2017-02-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20170215
...ffffff"; Laya.stage.addChild(this.txt); this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){ this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(...
来源: Laya_社区 发布时间: 20170810
...txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,scrollText);Laya.stage.on(Laya.Event.MOUSE_...
来源: Laya_社区 发布时间: 20180125
... var s=new Laya.Sprite(); Laya.stage.addChild(s); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,function(e){ arr.push([e.stageX,e.stageY]); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,bb) }) Laya.stage.on(Laya.Event.MOUSE_UP,this,function(){ Laya.stage.off(Laya.Event.MOUSE_MOVE,this,bb) }) function bb(e){ s...
来源: Laya_社区 发布时间: 20180510
... * 对象的 <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 (...
来源: Laya_社区 发布时间: 20170926
...0ff00"; text.fontSize = 30; Laya.stage.addChild(text); Laya.stage.on(Event.MOUSE_DOWN, this, changeAction); } private var tActionID:int=0; private function changeAction():void { tActionID++; var aniCount:int; //获取动画动作数量 aniCount = skeleton.getAnimNum(); tActionID = tActionID % aniCou...
来源: Laya2.0_文档 发布时间: 20210715