大约有 353 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
...用无效,就是不滚动,一直在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
...听到 浏览器失去焦点后, 通过Laya.stage.on(Laya.Event.KEY_DOWN, this, this.OnKeyDown)注册的键盘事件, 不能监听到,通过dom注册的键盘事件, 可以被监听到 2019-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20190227
...一个list,现在是找红框里面的(这个是最外面那个list, this.countDetails.array),那countPlayers的这个呢 星竹 • 2018-05-23 10:25 我是说list里面的list,怎么赋值(list 列表嵌套另外一个列表),怎么找到里面的那个list并赋值 Laya_Aaron • 201...
来源: Laya_社区 发布时间: 20180523
...res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya...
来源: Laya_社区 发布时间: 20230703
...t滚动位置的问题 ... mDemoUi.myScrollBar.changeHandler = new Handler(this, onChange); for(var m:int=0;m<21;m++){ data.push({m_label:"No."+m}); } mDemoUi.m_list.array=data; Laya.stage.addChild(mDemoUi); ... private function onChange():void{ trace("list index= "+mDemoUi.m_list.scrollBar.value...
来源: Laya_社区 发布时间: 20171016
...e.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new实例,不可直接在全局变量处实例化 //切记,无论何种鼠标提示方式,...
来源: Laya_社区 发布时间: 20161115
仅在Android微信小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets in...
来源: Laya_社区 发布时间: 20180609
...整,兼容性问题? // 加载动画 loadAni(): void { var aniPath = this.ANIS[this.fishIndex]; this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.mFactory.loadAni(aniPath); } // 动画解析完成,添加到舞台,并且开始swim parseCom...
来源: Laya_社区 发布时间: 20161209
... bg2.pos(650, 0); box.addChild(bg2); Laya.timer.frameLoop(1, this, bg_loop()); } function bg_loop() { box.x -= 1; if (bg1.x + box.x <= 0) { bg1.y = 650 } if (bg2.x + box.x <= 0) { bg2.x = 650 } } bg_rolling(); 以上是我把...
来源: Laya_社区 发布时间: 20160721
...值。 */ __proto.getInt16=function(){ if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds"; var us=this._d_.getInt16(this._pos_,this._xd_); this._pos_+=2; return us; } 只在那个 If 那...
来源: Laya_社区 发布时间: 20181025