大约有 39 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
粒子图片错误 Laya.loader.load("res/yan.part", Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); var yan = new Laya.Particle2D(settings); yan.emitter.start(); yan.play(); this.particlesPos.addChild(yan); 编辑器里面设置是对的 但是在网页上运行,图片...
来源: Laya_社区 发布时间: 20181220
...th); emotionSwf.play(0,false); emotionSwf.playTo(0, emotionSwf.count, Laya.Handler.create(this,() => { emotionSwf.stop(); emotion.visible = false; })); 如上代码,发现调研play(0,false)后,动画还是一直循环播放,还是emotionSwf.count一直为0,导致播放完成的回调会...
来源: Laya_社区 发布时间: 20181029
...01; private socket:Laya.Socket = null; private callbacks:any = {}; private handlers:any = {}; // Map from request id to route private routeMap = {}; private heartbeatInterval:number = 0; private heartbeatTimeout:number = 0; private nextHeartbeatTimeout:number = 0; private gapThreshold:number = 100; ...
来源: Laya_社区 发布时间: 20180119
....on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, changeSkin); } 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170818
...""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandler = new Handler(this, this.updateItem); // 设置数据项为对应图片的路径 var da...
来源: Laya_社区 发布时间: 20210122
...行域错了,this变成window了。简单的解决办法是回调改成Handler,你这个也可以看下你添加回调方法得地方,改下也可以。,方法后面增加.bind(this) 2017-01-18 0 0 分享 微博 QZONE 微信 xuhu1518 赞同来自: RequestConfig.instance.getRequestConfig(Stri...
来源: Laya_社区 发布时间: 20170118
...、示例(AS为例)package { import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { private var dd:*; public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //判断是否在加速器端 __JS__("if(window.conch)") { //获取loadingvi...
来源: Laya_社区 发布时间: 20160918
...的时候 使用了如下代码 SoundManager.playMusic(_musicPath, 1, new Handler(this, musicComplete),10); 在LayaAir中调试时候确实是从第10秒开始播放,但是发布了微信小程序之后,却是从头开始播放,请问有解决方案没? 2018-08-10 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20180810
...reateImage(url,thisLoader,true); }else{ MiniFileMgr.downOtherFiles(url,new Handler(MiniImage,MiniImage.onDownImgCallBack,[url,thisLoader]),url); } } else MiniImage.onCreateImage(url,thisLoader,true); }else { MiniImage.onCreateImage(url,thisLoader,!isTransformUrl); }修改为: if (!MiniFileMgr.getF...
来源: Laya_社区 发布时间: 20181212
...例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件 this.z...
来源: Laya_社区 发布时间: 20190507