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

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

111. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 66%]

...可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr.push({label: "item " + i, clip: i...

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

112. 类似于list下的按钮监听 !如何去做。 [ 66%]

...2018-06-28 23:26 给 Sprite 中 按键设置name ,然后通过 Sprite.on(Event.CLICK,this,yfqian_GameUi); public function yfqian_GameUi(e:Event):void{ trace("Sprite:",e.target.name) }

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

113. laya.ui.Button_API3.0 [ 66%]

...th addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getCo...

来源: Laya3.0_api 发布时间: 20231115

114. 关于下拉列表的选择触发 [ 66%]

...ia1.loading_desc.text = "可在小秘境挂机获取" dia1.confirm.on(Laya.Event.MOUSE_UP, this, dai1, [dia1]) dia1.popup() // this.big_map.selectedIndex = 0 } } } 两个列表,手动选择会触发,没有问题,但如果在下面加一个修改下拉数据的 this.small_map.labels = “1,2...

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

115. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 65%]

...runWith (laya.core.js:686) at ResInfo.loadComplete (laya.core.js:12634) at EventHandler.__proto.runWith (laya.core.js:687) at ResInfo.__proto.event (laya.core.js:465) at LoaderManager.__proto._endLoad (laya.core.js:12504) at Loader.onLoaded (laya.core.js:12481) at EventHandler.__proto.runWith (laya....

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

116. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...逻辑处理。 2.1 支持的事件类型 LayaAir中的HttpRequest继承自EventDispatcher,因此支持多种事件类型,用于HTTP请求后的响应逻辑,常用的事件有: Event.PROGRESS:用于跟踪 HTTP 请求的上传和下载进度,例如文件下载时,值为1时表示已完...

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

117. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 65%]

...代码:** ```javascript package { import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.ui.Clip; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Clip { /***控制器按钮资源***/ private var buttonSkin:String = "../../....

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

118. laya.ui.CheckBox [ 65%]

...ll Classes | Index | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button UIComponent Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显...

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

119. clearRes好像没作用,或许我的用法不对 [ 64%]

...  constructor() {         super();         Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp);     }     onKeyUp(e: Laya.Event) {         if (e.keyCode == 65) {//A             console.log("释放资源false")             Laya.loader.clearRes("res/atlas/co...

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

120. 示例 骨骼动画换装 加不上点击事件 [ 64%]

.../mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, cha...

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