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

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

881. 如何获取list下单元格的坐标点? [ 56%]

...自: my26929 如果你想取得list下单元格的坐标可以通过mouseHandler方法来获取 list.mouseHandler=new Handler(this,onClick); } private function onClick(e:Event,index:int):void { if(e.type==Event.CLICK) { trace("xy:"+list.getCell(index).x,list.getCell(index).y); } }上面的坐标是...

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

882. Cannot read property 'load' of null [ 56%]

...p/28.jpg", "res/img/map/29.jpg", ]; Laya.loader.load(this.skins,laya.utils.Handler.create(this, this.LoadSuccess,null,false)); } private LoadSuccess() { ViewManager.getInstance().CreateView(contant.loginId,new LoginView()); ViewManager.getInstance().ShowView(contant.loginId); } public SwictMap(index...

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

883. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 56%]

...ayabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){ var url = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取...

来源: Laya2.0_文档 发布时间: 20210714

884. native2.0压缩纹理如何使用 [ 56%]

...微博 QZONE 微信 xiaoman122 赞同来自: Laya.loader.load("res/1.pkm", Handler.create(null, function():void {     var spr:Sprite = new Sprite();     spr.loadImage("res/1.pkm");     spr.pos(100, 100);     Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就是tp转的图片,这...

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

885. 自定义loadingView [ 56%]

....loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Browser.window.loadingView

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

886. layaair 2.0 在构造函数中获取基类的组件,报错说未定义。 [ 56%]

...ameLoading extends ui.gamoloadingUI{ constructor(){ super(); this.PB.changeHandler = new Laya.Handler(this,this.onChange); } } 基类中明确有PB变量,是进度条。此处构造函数中设置事件报错,说PB未定义,但是放在onEnable中是正常的,难道在执行完父类构造...

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

887. 关于Matrix4x4的getForward方法 [ 56%]

...一个showSlotSkinByName(slotName:String, name:String)方法 源代码中Handler中的setTo()方法 laya里面有没有通过一个类的名字(字符串)来获取该类的方法?类似get class by name ts如何通过文件集加载的方法预加载声音文件,然后再调用 问题状态 最...

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

888. exception info:[TypeError:undefined is not an object(evaluating'tInfo[0].attributes')] at line 764 [ 56%]

...a.BitmapFont();         blueFnt.loadFont("common/number_blue.fnt", new Handler(this, () => {             Laya.Text.registerBitmapFont("number_blue", blueFnt);         })); 但具体原因不清楚 能否请官方测试下bmfont在iphone上运行情况     2017-05-23 0 0 分享 微...

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

889. Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? [ 55%]

... var soundData = null; Laya.loader.load("res/audio/TheSacredWar.ogg", Laya.Handler.create(Laya.stage, function () { console.log('音乐加载完成>>>-----------------|>'); soundData = Laya.loader.getRes("res/audio/somesound.ogg"); }), null, Laya.loader.SOUND);请教一下Laya.SoundManag...

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

890. 如何给Tab里的button设置点击事件? [ 55%]

... 1 个回复 cuixueying 赞同来自: Y_Yao 直接为你的tab添加selectHandler或者mouseHandler即可! 2017-05-16 1 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 Y_Yao 相关问题 Dialog:屏蔽点击Dial...

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