大约有 2,728 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0065 秒)
Laya_社区(1131) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya2.0_示例(109) Laya3.0_文档(87)
...ate body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,this,this.animate); } private animate(...
来源: Laya_社区 发布时间: 20171108
...his.apePath, Handler.create(this, this.createApe)); } private createApe(): void { var ape: Sprite = new Sprite(); ape.loadImage(this.apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); this.applayFilter(ape); } private applayF...
来源: Laya2.0_示例 发布时间: 20241120
...enParticleMaterial()ShurikenParticleMaterial _addReference(count:int = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseM...
来源: Laya2.0_api 发布时间: 20190513
...s清除之后下次再用到load时加载失败 public LoadImg(url:string):void { Laya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } ...
来源: Laya_社区 发布时间: 20180109
...。 VertexBuffer3D bind():Boolean[override] VertexBuffer3D destroy():void[override] VertexBuffer3D getData():* 获取顶点数据。 VertexBuffer3D setData(data:*, bufferOffset:int = 0, dataStartIndex:int = 0, dataCount:uint = 4294967295):void 设置数据。 VertexBuffer3DPublic Constan...
来源: Laya2.0_api 发布时间: 20190513
...e.on(Event.KEY_DOWN,this,onKeyDown); } private function onKeyDown(e:Event):void { // 当按下enter健自动发送文字 if(e.keyCode==13) { change(str); } } // 发送文字样式二,如果input有值的话,发送input的内容 private function onSendClick1():void { change(str2); } // 发送文...
来源: Laya_社区 发布时间: 20170107
... } onTriggerEnter(other: any, self: any, contact: any): void { //搜索黏贴在圆环上 } onUpdate(): void { } onDisable(): void { Laya.Pool.recover("friut",this.owner); } } 附件 : --> FruitMaster.zip 2022-04-13 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20220413
...t修改 public var popupEffect:Function = function(dialog:Sprite):void { dialog.scale(1, 1); Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 300, Ease.backOut, Handler.create(this, this.doOpen, [di...
来源: Laya_社区 发布时间: 20180620
...arCodeAt(i)); } socket.flush(); } private function onSocketClose(e:*=null):void { trace("Socket closed"); } private function onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if (message is ArrayBuffer) { trace(new Byte(message).r...
来源: Laya2.0_示例 发布时间: 20241120
...(Event.CLICK,this,clickHandler); }private function clickHandler(e:Object):void{var http:HttpRequest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}private function completeHandler(e:Object):void{audioContext.decodeAudioData(e,decodeAudi...
来源: Laya_社区 发布时间: 20181023