大约有 1,154 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0051 秒)
Laya_社区(863) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
...eUI { constructor() { super(); this.stage.on(Laya.Event.FOCUS, this, this.onFocus); this.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.timer.frameLoop(1,this,this.onFrameLoop); } private onFrameLoop():...
来源: Laya_社区 发布时间: 20180724
...stage.bgColor = "#ffffff"; Laya.stage.on(Event.CLICK, this, play); } function play():void { Laya.timer.loop(5000, this, function():void { playDragonBonesAnimation("BigAward/BigAward.sk",0...
来源: Laya_社区 发布时间: 20170406
this.bitmap.activeResource is not a function //开放域层级 private static _openZone:Laya.Sprite; //开放域纹理 private static _openZoneTexture:Laya.Texture; public static openZone(vx:number=0,vy:number=0,scaleX:number=1,scaleY:number=1) { if(!this._openZone) { //开放域 this._openZone = n...
来源: Laya_社区 发布时间: 20200618
...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
LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 LoginView.super(this);这是在教学视频里用的方法,好像不能用了。 这些layaair中特别的语法规则在哪里统一可以找到 var LoginView = function () { LoginView.super(this); t...
来源: Laya_社区 发布时间: 20170317
... createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图 function createMap() { //创建地图对象 tiledMap = new TiledMap(...
来源: Laya_社区 发布时间: 20180612
... videoElement.load('res/video/mov_bbb.mp4'); // 添加到舞台 let wrap = this.getChildByName('wrap') as Laya.Box; wrap.addChild(videoElement); // 监听点击事件,开始播放视频 let btn_start = this.getChildByName('btn_start') as Laya.Image; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加...
来源: Laya_社区 发布时间: 20200722
...面; */ var Panel1 = (function (_super) { function Panel1() { Panel1.super(this); //this.poke_a.x=0; } Laya.class(Panel1, "Panel1", _super); var _proto = Panel1.prototype; //======================================= //将指定的牌显示到桌面上 //======================================= _proto.s...
来源: Laya_社区 发布时间: 20180130
...onGameOver不是函数,麻烦有时间的大佬看看,很奇怪: this.Matter.Events.on(this._engine, 'collisionActive', this.onCollision); private onCollision(event): void { for(var i = 0; i < event.pairs.length; i++) { var pair = event.pairs[i]; if(pair.bodyA.label === 'gun' &...
来源: Laya_社区 发布时间: 20180524
... </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** ...
来源: Laya_社区 发布时间: 20180314