大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...tap.mp3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); } 在chrome,安卓下都是正常的,在ios和mac Safari下是undefined 放在一个sprite的cl...
来源: Laya_社区 发布时间: 20170811
...// 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.ac...
来源: Laya_社区 发布时间: 20180402
...载进度 Laya.loader.create(res,null,Laya.Handler.create(this,this.onProgress,null,false)); 2020-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 1605953523用户 赞同来自: 我把资源放...
来源: Laya_社区 发布时间: 20201130
...调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //播放An...
来源: Laya_社区 发布时间: 20190708
...要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例UI界面 var testView = ui.test.TestPageUI(); Laya.stage.addChild(testView); } ``` `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个worker.js是Laya官...
来源: Laya2.0_文档 发布时间: 20210715
...(760,650, WebGL); Laya.stage.frameRate = Stage.FRAME_SLOW; Stat.show(0,0); this.createMovieClip(); } private createMovieClip():void{ var mc:MovieClip = new MovieClip(); mc.load(this.SWFPath); mc.pos(0,0); Laya.stage.addChild(mc); } } } new laya.Animation_SWF(); Charles • 2018-01-08 13:51 支持遮...
来源: Laya_社区 发布时间: 20171103
...e_ct); rule_ct.loadImage("rule_txt.png", 0, 0, 460, 0, Handler.create(this, function(){ panel.addChild(rule_ct); })); } } } 现象截图(设备是 iPhone6sPlus): 长图路径:长图片 生产地址(PC端浏览沒问题/手机端浏览则黑屏):H5 手机浏览二维码: ...
来源: Laya_社区 发布时间: 20170215
...实现了,虽然笨了点,但还能用 let input = new Laya.TextInput(); this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j+...
来源: Laya_社区 发布时间: 20190225
...ny = null, lineWidth: number = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 sp.graphics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); ...
来源: Laya3.0_文档 发布时间: 20251010
...• 2018-05-31 17:36 @Laya_Aaron: Laya.loader.load(assetArr,Handler.create(this,this.gameStart),Handler.create(this,onProgress,null,false)); private var assetArr:Array=[ {url:"sound/bgMusic.mp3", type:Loader.SOUND}, {url:"sound/button.mp3", type:Loader.SOUND}, {url:"sound/er...
来源: Laya_社区 发布时间: 20180531