• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)

2511. 鼠标交互-自定义事件 [ 43%]

...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

2512. UI-Dialog [ 43%]

...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

2513. 动画不显示 [ 43%]

...;         }         private function loadResourceComplated(e:*=null):void         {             //开始异步加载资源             Laya.loader.load(m_MapImgUrl,Handler.create(this,onLoadMapComplated));             //创建角色帧            ...

来源: Laya_社区 发布时间: 20170921

2514. 如何监听移动端软键盘的弹出和收回? [ 43%]

...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

2515. UI-Dialog [ 43%]

...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

2516. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 43%]

...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

2517. 分享-js资源进度加载 [ 43%]

...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

2518. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 43%]

...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

2519. 分享:DrawToCanvas内存释放问题! [ 43%]

...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

2520. SCALE_FIXED_WIDTH适配屏幕的问题 [ 43%]

...      AppFunction.showLoadingView_fullScreen(resArray, createGameScene, null, "正在进入游戏...");         }         private getGets() {             var tempUrl: String = Laya.Browser.window.location.href;             var u = tempUrl.split("?");             var gets...

来源: Laya_社区 发布时间: 20181213