大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...ey3.png"); Laya.loader.load(assets, 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_社区 发布时间: 20171019
...n 为 Laya.Button 实例 this.closeBtn.on(Event.CLICK,this,this.closeWin); private closeWin():void { console.log("the window has closed..."); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Moni...
来源: Laya_社区 发布时间: 20170920
readUTFBytes error - Out of bounds /** *@private *读字符串,必须是 writeUTFBytes 方法写入的字符串。 *@param len 要读的buffer长度,默认将读取缓冲区全部数据。 *@return 读取的字符串。 */ __proto.readUTFBytes=function(len){ (len===void 0)&& (len=-1); i...
来源: Laya_社区 发布时间: 20180822
...er = Handler.create(this,onRender, null, false);//滚动列表点击事件 private function onRender(index:int):void{ list.setItem(lastSelect,arrConver(lastSelect,false));//取消选中效果 list.setItem(index,arrConver(index,true));//添加选中效果 trace("_cardItems",_cardItems);//打印数组...
来源: Laya_社区 发布时间: 20171129
drawToTexture截大图有问题,会丢失 private nsp:Laya.Sprite; init(): void { this.nsp=new Laya.Sprite(); this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000"); this.nsp.mouseThrough=true; Laya.stage.addChild(this.nsp); this.nsp....
来源: Laya_社区 发布时间: 20220809
...nt 设置一个css文本后调用contextWidth获取实际宽度是0 /** * @private * @param out */ override public function _addToLayout(out:Vector.<ILayout>):void { layout(); //!_style.absolute && out.push(this); } 这个重写有问题,会导致计算实际宽高信息的时候多...
来源: Laya_社区 发布时间: 20170309
调用Sprite的drawToCanvas怎么返回的是uint8array private function drawPicture():* { var _canvas:* =this.drawToCanvas(this.width,this.height,0,0); var base64:* = _canvas._canvas.source.toDataURL(); ...
来源: Laya_社区 发布时间: 20170401
...页面调用的数据。正常的应用是不需要调用此方法的。 private void Hook() { if(!isExit) { isExit = true; Toast.makeText(this, "在按一次退出程序", Toast.LENGTH_SHORT).show(); new Timer().schedule(new TimerTask() { @Override public void run() { // TODO Auto-generated method ...
来源: Laya_社区 发布时间: 20170811
...接 提交 1 个回复 我不会再取名字了 赞同来自: /**@private */ __proto.onTargetMouseDown=function(e){ if ((this.isLockedFun)&& !this.isLockedFun(e))return; this.event(/*laya.events.Event.END*/"end"); this._click...
来源: Laya_社区 发布时间: 20201118
...fab var Prefab=(function(){ function Prefab(){ /**@private */ this.json=null; } __class(Prefab,'laya.components.Prefab'); var __proto=Prefab.prototype; /** *通过预制创建实例 */ __proto.create=fu...
来源: Laya_社区 发布时间: 20181102