大约有 82 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
...ent){ var index=element._getIndexInList(); this.length--; if (index!==this.length){ var end=this.elements[this.length]; this.elements[index]=end; end._setIndexI...
来源: Laya_社区 发布时间: 20190820
...e.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.vScrollBarSkin='comp/vscrol...
来源: Laya_社区 发布时间: 20170719
...-23 10:57 那怎么找里面的那个list w1114367261 • 2018-05-23 11:57 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index this.storelist.mouseHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index } public function ...
来源: Laya_社区 发布时间: 20180522
...办法 鼠标按下时设置 hScrollBar.changeHandler = new Laya.Handler(this, this.onScrollFunc, [hScrollBar.value]); private onScrollFunc (value : number) { this.hScrollBar.value = value; }抬起时设置为null,就可以了 2019-02-20 1 0 分享 微博 QZONE 微信 qian 赞同来自: 禁止pane...
来源: Laya_社区 发布时间: 20180329
...bGL; var Handler = Laya.Handler function GolfMainUI() { GolfMainUI.super(this) var dragRegion; showDragRegion(); this.golfBall.x = Laya.stage.width / 2; this.golfBall.y = Laya.stage.height / 2; this.golfBall.on(Event.MOUSE_DOWN, this, onStartDrag) function showDragRegion() { //拖动限制区...
来源: Laya_社区 发布时间: 20180627
...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION); } private function beginLoad():void { //加载引擎需要的资源 Laya.load...
来源: Laya_社区 发布时间: 20180725
...n // 这儿加一层限制,所有未知原因的关闭弹窗都不生效 this.closeType = type; Laya.Dialog.manager.close(this); } 2020-07-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cuixueying 相关问题 求指点3d射线碰...
来源: Laya_社区 发布时间: 20170316
...用无效,就是不滚动,一直在0的位置 Laya.timer.frameLoop(1,this,onLoop); private function onLoop():void { progress++; //最高100%进度 if(progress>=100) { progress=100; this.tips.text="游戏加载完毕,即将进入游戏..." this.panel.visible=false; this.gobtn.visible=true; }...
来源: Laya_社区 发布时间: 20180121
...votX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild(sprite); Laya.Tween.to(sprite, {scaleX:1.5, scaleY:1.5, alpha:0}, 5000); 2018-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180708
...数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.19186599730944645 0.52519...
来源: Laya_社区 发布时间: 20180620