大约有 1,234 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0045 秒)
Laya_社区(703) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
... Browser.window[callbackName] = callback; //loading Main.tl.startLoad(); } private function callback(data:*):void { //移除 var script:* = Browser.getElementById("serverlist"); Browser.document.head.removeChild(script); DataCollection.jsonp.parseData(data); //loading Main.tl.stopLoad(); } 2018-02-0...
来源: Laya_社区 发布时间: 20180209
...下并没有你说的问题! this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void { Laya.SoundManager.playSound("res/sound/onClick.wav"); } 你看看是不是你的代码逻辑有问题那? 2018-05-03 0 2 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180503
...细点 Victor • 2017-07-07 14:40 @cuixueying 这样处理是个死循环 private onStageResize(e:Laya.Event):void{ if(Laya.Browser.onMobile){ alert("自适应") Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.alignV = Laya.Stage.ALIGN_TOP; Laya.stage.alignH = Laya.Stage.ALIGN...
来源: Laya_社区 发布时间: 20170707
...Matter.Body; constructor() { super(); this.on('start', this, this.init); } private init():void { console.log("init", this.x, this.y, this.width, this.height, this.scaleX, this.scaleY); var createOption: any = { isStatic: false, }; this.matterBody = Matter.Bodies.rectangle(this.x, this.y, this.width,...
来源: Laya_社区 发布时间: 20180530
...ions); Matter.World.add(engine.world, rock); elastic.bodyB = rock; } }); } private function onResize():void { // 设置鼠标的坐标缩放 // Laya.stage.clientScaleX代表舞台缩放 // Laya.stage._canvasTransform代表画布缩放 Matter.Mouse.setScale(mouseConstraint.mouse, {x: 1 / (Laya.stage....
来源: Laya_示例 发布时间: 20251218
...建完毕,此方法只执行一次 */ onAwake(): void { this.setup(); } private setup(): void { let img: Laya.Image = new Laya.Image("resources/layaAir.png"); img.pos(165, 62.5); this.owner.addChild(img); } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 20...
来源: Laya3.0_文档 发布时间: 20251010
...loader.load("lang.lang",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var obj:Object=Laya.loader.getRes("lang.lang"); Text.langPacks=obj; var texts:Text=new Text(); texts.text="hello!welcom LayaBox"; Laya.stage.addChild(texts); } } } 2016-10-18 1 0 分享 ...
来源: Laya_社区 发布时间: 20161018
...19-05-09 0 0 分享 微博 QZONE 微信 vison123 赞同来自: /**@private */ __proto.loop=function(){ var mouseY=Laya.stage.mouseY; var mouseX=Laya.stage.mouseX; this._lastOffset=this.isVertical ? (mouseY-this._lastPoint.y):(mouseX-thi...
来源: Laya_社区 发布时间: 20181028
...nabled属性)。 Node onAsynLoaded(url:String, data:*, params:Array):void private Sprite3D once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器能够接收事件通知,此侦听事件响应一次后则自动移除侦...
来源: laya_api 发布时间: 20170929
... if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.scaleMode = StageScaleMode.NO_SCALE; this.stage.align = StageAlign.TOP_LEFT; var loginView:LoginView = new LoginView(); th...
来源: Laya_社区 发布时间: 20151225