大约有 489 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0042 秒)
...a(video); hls.on(HLS.Events.MEDIA_ATTACHED, () => { video.muted = true; this.playVideo(); }); hls.on(HLS.Events.ERROR, (event, data) => { console.log("HLS加载失败"); }); hlsxx = hls;//方便销毁用hlsxx.destroy(); }else if(videoTexture.canPlayType("m3u8")){ this.playVideo(); videoTexture...
来源: Laya_社区 发布时间: 20250908
...态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function():void{ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` (图6)
来源: Laya2.0_文档 发布时间: 20210715
...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