大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(706) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...0,WebGL); Laya.timer.callLater(this,onLater); Laya.timer.clearAll(this); } private function onLater():void{ trace("xxx"); } } } 2018-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: ...
来源: Laya_社区 发布时间: 20180112
timeline destroy的bug private numTimeLine: Laya.TimeLine; release() { this.numTimeLine.offAll(); this.numTimeLine.destroy(); } 我调用代码release时报错,发现core.js中先把_tweenDataList置null然后又引用了 附件 : --> 2017-06-10 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20170610
怎么只用RegExp进行正则校验 private static function RegExpFunc(reg:RegExp,str:String):Boolean { var p:RegExp=reg; return p.test(str) ; } 我这样子写,直接传进去,运行报错 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170313
...1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 代码写错了: private function ChangeMusicVolume():void { SoundManager.setMusicVolume(0); } 用setMusicVolume就可以了! 2017-05-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20170518
...iniGame: boolean; /** 抖音小游戏*/ static onTTMiniGame: boolean; /** @private */ static onFirefox: boolean;//TODO:求补充 /** @private */ static onEdge: boolean;//TODO:求补充 /** @private */ static onLayaRuntime: boolean; 例如,我们可以这样在代码中判断: //如果是Chrome...
来源: Laya3.0_文档 发布时间: 20251010
...ProgressBar; import laya.utils.Handler; public class ProgressBar_Example { private var progressBar:ProgressBar; public function ProgressBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/pro...
来源: Laya3.0_api 发布时间: 20231115
...已邀请: 与内容相关的链接 提交 2 个回复 ssqhu 赞同来自: private function onPauseBtnClick(e:Event):void { //阻止后续节点的监听器 e.stopPropagation(); } 用这个方法就可以阻止后面的事件了。 ...
来源: Laya_社区 发布时间: 20170224
...','apes/monkey2.png','apes/monkey3.png'],Handler.create(this,onLoaded)); } private function onLoaded():void { //获取纹理 var texture1:Texture=Loader.getRes('apes/monkey0.png') as Texture; var texture2:Texture=Loader.getRes('apes/monkey1.png') as Texture; var texture3:Texture=Loader.getRes('apes/...
来源: Laya_社区 发布时间: 20170519
...Box { public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image; //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image(); //this.text = new Laya.Label(); this.addChild(th...
来源: Laya_社区 发布时间: 20180507
对象池使用报错 private Board = new GiftBoard(); let board = Laya.Pool.getItemByClass("board",this.Board); 报下面这个错 cls is not a constructor 2017-12-11 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20171211