大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1928) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(49)
...vent.CLICK, this, onSpriteClick); } private function onSpriteClick(e:Event=null):void { var randomAngle:int = Math.random() * 180; //发送自定义事件 sp.event(ROTATE, [randomAngle]); } // 触发自定义的rotate事件 private function onRotate(newAngle:int):void { Tween.to(sp, {"rotation" : ne...
来源: Laya2.0_示例 发布时间: 20260303
...eate(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE...
来源: Laya_示例 发布时间: 20260303
...; } private function loadResourceComplated(e:*=null):void { //开始异步加载资源 Laya.loader.load(m_MapImgUrl,Handler.create(this,onLoadMapComplated)); //创建角色帧 ...
来源: Laya_社区 发布时间: 20170921
...ventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { textInput=new TextField(); textInput.type=TextFieldType.INPUT; textInput.border=true; textInput.multiline=true; textInput.wordWrap=true; textInput.width=200; textInput.x=100; textInput.y=200; addChild(textInput);...
来源: Laya_社区 发布时间: 20151225
...eate(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE...
来源: Laya2.0_示例 发布时间: 20260303
...Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI(); Laya.stage.addChild(dialog); dialog.popup(); dialog.btn_question_dialog_next.on(Laya.Event.CLICK, thi...
来源: Laya_社区 发布时间: 20180718
...his, this.onAssetsLoaded), Laya.Handler.create(this, this.onAssetsLoading, null, false)); } onAssetsLoading(progress) { this.Progress.changeBar(progress); this.Progress.changeText(progress) } onAssetsLoaded() { alert('加载完毕'); //==================== this.Socket = new Socket(); //=============...
来源: Laya_社区 发布时间: 20171217
...egion.x, this.dragRegion.y, this.dragRegion.width, this.dragRegion.height, null, "#FFFFFF", 2); } private onStartDrag(e: Event): void { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) this.ape.startDrag(this.dragRegion, true, 100); } } } new laya.Interaction_Drag(); 2...
来源: Laya_社区 发布时间: 20171106
...ole.log("this._texture.destroy"); this._texture.destroy(); this._texture = null; } if(this._htmlC){ this._htmlC.destroy(); } this._htmlC = this.zoomBox.drawToCanvas(RouletteTableScene.ZOOM_W, RouletteTableScene.ZOOM_TARGET_H, -offsetX, -offsetY); //获取截屏区域的texture this._texture = new La...
来源: Laya_社区 发布时间: 20170822
... AppFunction.showLoadingView_fullScreen(resArray, createGameScene, null, "正在进入游戏..."); } private getGets() { var tempUrl: String = Laya.Browser.window.location.href; var u = tempUrl.split("?"); var gets...
来源: Laya_社区 发布时间: 20181213