大约有 1,240 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
Laya_社区(920) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(43) laya_api(2) Laya2.0_api(2)
...,仔细研究了源码,发现问题出在事件派发上 截图来自EventDispatcher 如图所示,当派发mouseup事件时,当前的type为mouseup,由于scrollBar移除了mouseUp事件,所以此时的this._events[type]是undefined,而源码中又去取undefined的run属性,肯定会报...
来源: Laya_社区 发布时间: 20211227
...er.create(this,this.clickEnd)); } this.obj.on(Laya.Event.CLICK,this,this.init); } return BtnFeed; })(); //实例化上面的类 _proto.getFeedBtn = function(){ this.feedBtn = [ this.myHome,//我的家园 this.famlily...
来源: Laya_社区 发布时间: 20170301
...ode = Laya.Stage.SCREEN_NONE; Laya.stage.on(Laya.Event.RESIZE, this, this.windowResized); } windowResized(){ let sp = new Laya.Sprite(); sp.graphics.drawRect(0,0,Laya.stage.width,Laya.stag...
来源: Laya_社区 发布时间: 20200119
...ueying 赞同来自: 东南西北风 先为你的Animation添加一个Event.LOADED事件,在资源加载完成后通过getBounds来获取Animation的宽高,设置pivot轴心点为width/2,height/2,同时设置pos值为pivot值的相反值即可。如果pos已经设置过,将pos现有...
来源: Laya_社区 发布时间: 20170119
鼠标滚轮滚动事件 Laya.Event.MOUSE_DOWN // 左键按下 Laya.Event.MOUSE_UP // 左键抬起 Laya.Event.CLICK // 左键点击 Laya.Event.RIGHT_MOUSE_DOWN // 右键按下 Laya.Event.RIGHT_MOUSE_UP // 右键抬起 Laya.Event.RIGHT_CLICK // 右键单击 Laya.Event.MOUSE_MOVE // 鼠标移动 Laya...
来源: Laya_社区 发布时间: 20180411
...nager.AppManager; import flash.display.Sprite; import flash.events.Event; import flash.external.ExternalInterface; import flash.net.URLVariables; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFormat; impo...
来源: Laya_社区 发布时间: 20200217
...Index !=value){ this._selectedIndex=value; this.changeSelectStatus(); this.event(/*laya.events.Event.CHANGE*/"change"); this.selectHandler && this.selectHandler.runWith(value); this.startIndex=this._startIndex; //} });
来源: Laya_社区 发布时间: 20190305
分享:Skeleton下Event.LABLE('label')事件的使用 LayaAir下支持龙骨的自定义事件,即动画制作中为关键帧添加的帧事件,这里不再累述,下面看个例子。 Label事件如何设置? 打开Dragonbones(或spine),选择龙骨动画...
来源: Laya_社区 发布时间: 20170406
...Right.bottom+100; } //事件注册 //开始游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); }); //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); }); //天猫Log...
来源: Laya_社区 发布时间: 20180810
... private init():void { //添加点击事件处理 this.v_btn_boy.on(Laya.Event.CLICK, this, this.onClickBtnBoy); this.v_btn_friend.on(Laya.Event.CLICK, this, this.onClickBtnFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 priv...
来源: Laya_社区 发布时间: 20180312