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

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

81. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 57%]

...能,全部代码如下所示: ```typescript package game { import laya.events.Event; import laya.ui.Image; import laya.utils.Tween; /** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ...

来源: Laya2.0_文档 发布时间: 20210714

82. laya.ui.ColorPicker [ 57%]

...Classes | Index | Frames No Frames ColorPickerProperties | Methods | Events Packagelaya.uiClasspublic class ColorPickerInheritanceColorPicker Component Sprite Node EventDispatcher Object ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 Public Pr...

来源: laya_api 发布时间: 20170929

83. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...Script extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close(); }); } } 1.3.3 关联场景 设置好弹窗之后,需要用代码将Dialog与所需要用到该Dialog的场景管关联起来。回到初始场景Scene,在Scene2D的属性设置...

来源: Laya3.0_文档 发布时间: 20251024

84. laya.ui.ColorPicker [ 56%]

...Classes | Index | Frames No Frames ColorPickerProperties | Methods | Events Packagelaya.uiClasspublic class ColorPickerInheritanceColorPicker UIComponent Sprite Node EventDispatcher Object ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 Public ...

来源: Laya2.0_api 发布时间: 20190513

85. Laya.Resource.destroyUnusedResources导致界面变形 [ 55%]

...3执行destroyUnusedResources。 核心代码: private onBtnClick(e:Laya.Event):void { switch(e.target) { case this.btn1: Laya.Scene.open("ui/p1/Page1.scene", false); break; case this.btn2: Laya.Scene.close("ui/p1/Page1.scene"); break; case this.btn3: Laya.Resource.destroyUnusedResources(); break;...

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

86. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 55%]

... else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, this._onInputEvent, [element, ...

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

87. TS setExternalLinkEx問題 [ 55%]

...nimationFrame(render); } window.requestAnimationFrame(render); document.addEventListener('touchstart',()=>{ if(Browser.window.conch){ var l = 50; var t = 50; var w = window.innerWidth-l*2; var h = window.innerHeight-t*2; Browser.window.conch.setExternalLinkEx('http://www.layabox.com',l,t,w,h,true...

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

88. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 55%]

...Effect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLICK, this, this.closeDialog); } //关闭 closeDialog(): void { this.close(); } //关闭效果 hideEffect(): void { Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn); } //显示效果 showEffect(...

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

89. 关闭指定定时器timer [ 55%]

...器还在继续调用回调,并没有报错。this.StartToRound.on(Laya.Event.CLICK,null,function(){ Laya.timer.loop(10,this,round);//10ms 一秒100次 }); //转动逻辑 function round(){ tlate.rotation+=roundTurnChange(1); console.log(tlate.rotation); } //转动变量变化 function roundTurnCha...

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

90. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 55%]

...代码如下: ```java package { import laya.display.Sprite; import laya.events.Event; import laya.net.HttpRequest; import laya.utils.Browser; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new Htt...

来源: Laya2.0_文档 发布时间: 20210714