大约有 486 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
...a.loader.load("resources/916.mp4").then(() => { this.play(); }); }) }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试。完整的demo及效果已放置附件中。 2023-10-09 0 0 分享 微博...
来源: Laya_社区 发布时间: 20231007
...预设变量{Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete));}private function onComplete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变量);} 2020-01-04...
来源: Laya_社区 发布时间: 20200104
背景循环帧黑屏(飞机大战) Laya.timer.frameLoop(1,this,this.onLoop); 调看了半天,一直卡这里,这行放进去就黑屏 谢谢哪位解答下。 附件 : --> 2017-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20170814
...的链接 提交 1 个回复 Apple 赞同来自: xxx.on(Laya.Event.STOPPED,this,this.onStop); function onStop(){ //你的代码 } 2018-04-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ssss111 相关问题 配置layaAir需要注...
来源: Laya_社区 发布时间: 20180404
..., alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔细看官方的...
来源: Laya_社区 发布时间: 20180718
...LLFILTER) { super(collisionGroup, canCollideWith); this._enableProcessCollisions = false; } _addToSimulation() { this._simulation._addPhysicsCollider(this, this._collisionGroup, this._canCollideWith); } _removeFromSimulation() { ...
来源: Laya_社区 发布时间: 20200505
...乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ...
来源: Laya_社区 发布时间: 20170627
如何安全删除龙骨动画? private completeHandler():void { // this.play(); this.mArmature.destroy(true); }如图所示,使用官方例子在播放完毕后里面销毁会报错. 报错位置为: 这里的_player为null 据观察 好像此时龙骨动画并未播放完毕,在stage中还有残...
来源: Laya_社区 发布时间: 20170225
...er.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(); video.loop =...
来源: Laya_社区 发布时间: 20170515
..., alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } private function onComplete():void { trace("timeLine complete!!!!"); timeLine.pause(); timeLine.destroy(); // Laya.timer.frameOnce(10, this, dispose); } ...
来源: Laya_社区 发布时间: 20170327