大约有 498 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0042 秒)
Laya_社区(182) Laya3.0_api(109) Laya2.0_文档(72) Laya2.0_api(66) laya_api(46) Laya3.0_文档(17) Laya2.0_示例(4) Laya_示例(2)
...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } new WatchPosition(); ``` 由...
来源: Laya2.0_文档 发布时间: 20210714
...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } 由于本例不需要使用LayaAir...
来源: Laya3.0_文档 发布时间: 20251010
...mage.scale(1,1); Tween.to(image,{scaleX:0.5,scaleY:0.5},600,null,new Handler(this,tweenGuide,[image]),500); } public function tweenGuide1(image:Image):void { Tween.to(image,{x:100,y:100},600,null,new Handler(this,tweenGuide1,[image]),500); } *******************************************...
来源: Laya_社区 发布时间: 20161216
...is.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHa...
来源: Laya3.0_文档 发布时间: 20251010
list显示函数调用不出来 list的renderHandler函数调用不成功是什么原因? this.listShow.renderHandler = new Laya.Handler(this, this.onRender); 附件 : --> 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20180419
...据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr....
来源: Laya_社区 发布时间: 20170513
...接 提交 2 个回复 Yangcy 赞同来自: Laya.loader.load("abc.json", Handler.create(this, onAssetLoadedSound), Handler.create(this, progressHandler), Loader.SOUND); 第一次加载出来: [list=none] [*]0: {column: "0", duration: "0", mode: "点", time: "3076"}[/*] [*]1: {column: ...
来源: Laya_社区 发布时间: 20181122
...现方式吗?(*^__^*) 嘻嘻…… Morn UI下的List组件提供了mouseHandler方法,该方法的回调方法会返回2个参数,一个是事件类型,一个是当前你所点击列表的索引值。根据索引值即可判断你点击的是哪一条列表,并根据该索引写下你想...
来源: Laya_社区 发布时间: 20151224
...trace("播放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.mp3", 1, new Handler(this, onComplete)); }播放声音或音效的第3个参数就...
来源: Laya_社区 发布时间: 20170330
...ort Loader = laya.net.Loader import Texture = laya.resource.Texture import Handler = laya.utils.Handler import Browser = laya.utils.Browser import TiledMap = laya.map.TiledMap import Rectangle = laya.maths.Rectangle import Stat = laya.utils.Stat import TextFiled = laya.display.Text import LocalStora...
来源: Laya_社区 发布时间: 20180116