大约有 218 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
...Laya3.0.3 的VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 le...
来源: Laya_社区 发布时间: 20230825
...函数 Tween.to(sprite,{x:Laya.stage.mouseX,y:sprite.y,update:new Handler(this,onWalk(hDir)),complete:Handler.create(this,function(){ Tween.to(sprite,{x:sprite.x,y:Laya.stage.mouseY,update:new Handler(this,onWalk(vDir))}) ; })}) ; console.log(sprite.x) ; console.log(sprite.y) ; console.log("once don...
来源: Laya_社区 发布时间: 20180331
...ya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():void { Animation.createFrames(["war/h...
来源: Laya_社区 发布时间: 20161026
...,预加载时报错,就是这里: laya.core.js的7430行 if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,不使用预加载,就不报错,只是不知道什么时候真的加载完成,那个_template不再为null,我就可以调用play了。 ...
来源: Laya_社区 发布时间: 20180622
...ePhoenixes(); // 动态背景渲染 evalBgColor(); Laya.timer.frameLoop(1, this, renderBg); } function createPhoenixes() { var scaleFactor = Math.min( Laya.stage.width / (phoenixWidth * 2), Laya.stage.height / phoenixHeight); // 加了混合模式的凤凰 var blendedPhoenix = createAnimation(); ble...
来源: Laya_示例 发布时间: 20251130
...onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:添...
来源: Laya2.0_文档 发布时间: 20210715
...ion complete事件回掉参数为undefinend var ani1:Laya.FrameAnimation = this.ani1; ani1.play(0,false); ani1.on(laya.events.Event.COMPLETE,this,this.onPlayEnd); onPlayEnd(evt) { //evt 居然是undefinend。事件机制还能用吗? } 2017-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170919
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.bgColorTweener = new Tween(); this.setup(); } setup() { this.createPhoenixes(); // 动态背景渲染 this.evalBgColor(); Laya.timer.frameLoop(1, this, this.renderBg); } createPhoenixes() { let scaleFactor = Math.min( La...
来源: Laya2.0_示例 发布时间: 20251130
...数暴增,这是为啥???? var url = App.animManager.getUrl(id); this.ani.loadAtlas(url,null,id); this.ani.alpha = 0.5; this.ani.play(0, true); var grayMat = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]; //创建一个颜色滤镜对象,灰图 var scaleFilter = new Laya...
来源: Laya_社区 发布时间: 20180515
...play的第二个参数是true,监听mArmature.player.on(Event.COMPLETE,this,onComplete);即可 如果play的第二个参数是false,监听mArmature.on(Event.STOPPED, this, completeHandler);即可! 2017-08-07 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: sketon.player.on(Event.COMP...
来源: Laya_社区 发布时间: 20170802