• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)

861. 图片显示异常 [ 55%]

... 已邀请: 与内容相关的链接 提交 4 个回复  赞同来自: private applk(listNode: Laya.List, listData) { var data: any[] = []; listData.sort(function () { return 0.5 - Math.random(); });  listData.map((item, index) => { var hotShow: boolean = false; var newShow: boolean = false;...

来源: Laya_社区 发布时间: 20200805

862. 请问怎么把arraybuffer作为图片显示出来 [ 55%]

...send("https://ask.layabox.com/static ... ot%3B, "", "get", "arraybuffer"); private completeHandler(data: ArrayBuffer) { //请问怎么把这个arraybuffer作为图片显示出来 } 2018-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

来源: Laya_社区 发布时间: 20181010

863. 怎么播放声音? [ 55%]

...und.on(Laya.Event.ERROR,this,this.loadcom_f); bg_sound.load("res/bg.mp3"); private loadcom_f(e:Laya.Event):void{ console.log("------------------=============") }可是这么写了一户,发现loadcom_f根本就没有被调用,还希望各位能指点一二!!! 谢谢!!! 2016-08-05 添...

来源: Laya_社区 发布时间: 20160805

864. 关于event中只读属性touches,问题,求解 [ 55%]

....fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } }  输出为:       不明白touches属性数组里面存储的什么类型的数...

来源: Laya_社区 发布时间: 20170519

865. 图集资源clearRes清除之后下次再用到load时加载失败 [ 55%]

...rl, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearImg(url:string):void { Laya.Loader.clearRes(url); } 2018-01-09 添加评论 免费帖 --> 分...

来源: Laya_社区 发布时间: 20180109

866. mc.rotation=0的问题 [ 55%]

...有些斜。   mc.rotation=30; Laya.timer.frameLoop(1,this,onLoop); private function onLoop():void {      mc.rotation-=5;      if(mc.rotation<=0)      {          Laya.timer.clear(this,onLoop);          mc.rotation=0;       }   }   所以,mc.rotation=0时是有误...

来源: Laya_社区 发布时间: 20171228

867. 按照打地鼠教程来无法正常加载资源 [ 55%]

...Arr,Handler.create(this,this.onLoaded));         }         private function onLoaded():void{             //显示界面             var gameView:GameView = new GameView();             Laya.stage.addChild(gameView);         }     }   ...

来源: Laya_社区 发布时间: 20180106

868. 附加脚本的使用问题 [ 55%]

...onstructor() {         console.log("加载ScaleButton");     }     private _owner: any;     public set owner(o: laya.display.Sprite) {         this._owner = o;         console.log("设置owner");     }     public get owner(): laya.display.Sprite {         return this._owner...

来源: Laya_社区 发布时间: 20170601

869. [LayaAirIDE3]请教一下3.3中新的tween怎么动画结束后传参给回调的方法 [ 55%]

... 1).duration(100).userData({ prop: "xx" }).then(this.onComplete, this);   private onComplete(tweener: Laya.ITweener): void { console.log(tweener.userData); } 2025-09-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 荣rong 相关问题...

来源: Laya_社区 发布时间: 20250919

870. list控件内字体大小设置无效 [ 55%]

list控件内字体大小设置无效  private function updateItem(cell:Box, index:int):void{ var itemImg:Image=cell.getChildByName("itemImg") as Image; var itemName:Label=cell.getChildByName("itemName") as Label; itemImg.skin=cell.dataSource.image_url; itemName.width=Number(itemName.text.length*2...

来源: Laya_社区 发布时间: 20170829