大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...eWidth和tileHeight获取单块地图的大小private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height),Handler.create(this,onComplete)); } private function onComplete():vo...
来源: Laya_社区 发布时间: 20160717
一个按钮按下弹起怎么加缓动效果 private function pm_down():void { var scaleValue:Number = 0.9; mainPage.pm_main.scale(scaleValue, scaleValue); } private function pm_up():void { var scaleValue:Number =1; mainPage.pm_main.scale(scaleValue, scaleValue); } 2017-03-18 添加评论 免费...
来源: Laya_社区 发布时间: 20170318
...e clone():*[override] 克隆。 BoxColliderShape cloneTo(destObject:*):void 克隆。 ColliderShape updateLocalTransformations():void 更新本地偏移,如果修改LocalOffset或LocalRotation需要调用。 ColliderShapeProperty DetailsizeXpropertysizeX:Number [read-only] 获取X轴尺寸...
来源: Laya2.0_api 发布时间: 20190513
...41 克隆。 Returns any 克隆副本。 cloneTo cloneTo(destObject: any): void Defined in laya/d3/core/particleShuriKen/module/RotationOverLifetime.ts:31 克隆。 Parameters destObject: any 克隆源。 Returns void Globals "laya/d3/core/particleShuriKen/module/RotationOverLifetime" RotationOverLi...
来源: Laya3.0_api 发布时间: 20231115
...大 class CAffiche { private textfiled:Laya.HTMLDivElement; public Reset():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_c...
来源: Laya_社区 发布时间: 20170911
...回复 cuixueying 赞同来自: private function onPlayMusic(e:Event=null):void { trace("播放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.m...
来源: Laya_社区 发布时间: 20170330
...USE_DOWN, this, onMouseDown); private function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private function onMouseMove(e:Event= null):void { var touches:Array = e.touches; if (touches) {...
来源: Laya_社区 发布时间: 20210203
...ate(): AnimatorState | null set currentState(value: AnimatorState | null): void Defined in laya/d3/component/Animator/AnimatorPlayState.ts:33 当前动画State Returns AnimatorState | null Defined in laya/d3/component/Animator/AnimatorPlayState.ts:36 当前动画State Parameters value: AnimatorState...
来源: Laya3.0_api 发布时间: 20231115
...是旧的那个loop清理不掉。 下面是大概的代码:main(): void{ Laya.timer.loop(1000, this, this.loopFunc, [1], false); Laya.timer.loop(500, this, this.loopFunc, [2], false); ... ... Laya.timer.clear(this, loopFunc); Laya.timer.clear(this, loopFunc); } loopFunc(data: any):void{} 2020-...
来源: Laya_社区 发布时间: 20200206
对象mask的区域改变问题! private addedToStage():void{ this.__mask = new Laya.Sprite(); this.__mask.graphics.drawRect(0,0,this.img_bar.width,this.img_bar.height,"#000000"); this.setValue(0); } private setValue(v:number):void{ this.__mask.scaleX = v; this.img_bar.mask = null;//第二次设...
来源: Laya_社区 发布时间: 20170320