大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
..., Handler.create(this, onAssetsLoaded)); private function onAssetsLoaded():void { for(var i:int = 0, len:int = assets.length; i < len; ++i) { var asset:Image = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clear...
来源: Laya_社区 发布时间: 20171019
...Laya.Event.COMPLETE,this,this.onPlayComplete); } onMouseMove():void{ //根据鼠标位移主角方法 this.hero.pos(Laya.stage.mouseX,Laya.stage.mouseY); } 2018-05-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...
来源: Laya_社区 发布时间: 20180502
...加载,所有未加载的内容全部停止加载。*/ clearUnLoaded(): void;这是bug吧,无法stop下载,即便在第一次load的时候完成了,但是第二次为什么还会报错,无法理解你们逻辑是怎么处理的! 附件 : --> 2019-06-30 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190630
...例 this.closeBtn.on(Event.CLICK,this,this.closeWin); private closeWin():void { console.log("the window has closed..."); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞...
来源: Laya_社区 发布时间: 20170920
...return 读取的字符串。 */ __proto.readUTFBytes=function(len){ (len===void 0)&& (len=-1); if (len==0)return ""; var lastBytes=this.bytesAvailable; if (len > lastBytes)throw "readUTFBytes error - Out of bounds"; len=len > 0 ? len :lastBytes; return this.rUTF(len); } 2018-08-22 添...
来源: Laya_社区 发布时间: 20180822
...ll, false);//滚动列表点击事件 private function onRender(index:int):void{ list.setItem(lastSelect,arrConver(lastSelect,false));//取消选中效果 list.setItem(index,arrConver(index,true));//添加选中效果 trace("_cardItems",_cardItems);//打印数组 } 是这样的,我用list.selec...
来源: Laya_社区 发布时间: 20171129
...哪个才对啊? Sprite.as public function set transform(value:Matrix):void { this._tfChanged = false; var m:Matrix = this._transform || (this._transform = _createTransform()); value.copyTo(m); _setTransform(m); //设置transform时重置x,y if (value) { _x = value.tx; _y = value.ty; value.tx = va...
来源: Laya_社区 发布时间: 20181125
...this.w, this.h, WebGL); this.createText(); this.start(); } private start():void { for (var i:number = 0; i this.w) { this.stars[i].x = this.stars[i].x - this.w; } else if (this.stars[i].x this.h) { this.stars[i].y = this.stars[i].y - this.h; } else if (this.stars[i].y w) { stars[i].x = stars[i].x - ...
来源: Laya_示例 发布时间: 20260303
...m out */ override public function _addToLayout(out:Vector.<ILayout>):void { layout(); //!_style.absolute && out.push(this); } 这个重写有问题,会导致计算实际宽高信息的时候多次执行layout()导致最后结果是0.我将这个重写方法注释掉就能正常获取...
来源: Laya_社区 发布时间: 20170309
...a.stage.addChild(this.tipContainer); this.nextStep(); } private nextStep():void { if (this.guideStep == this.guideSteps.length) { Laya.stage.removeChild(this.guideContainer); Laya.stage.removeChild(this.tipContainer); } else { var step:any = this.guideSteps[this.guideStep++]; this.hitArea.unHit.clea...
来源: Laya2.0_示例 发布时间: 20260303