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

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

1961. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 74%]

...d(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stag...

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

1962. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 74%]

...0' ok='ok' isOpen='true'/>"+ "</dir>"+ "</data>"; var xml = this.parseXMLFromString(xmlString); console.log(this.m_tree) this.m_tree.xml =xml; 2017-07-17 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这里以alpha,官方tree示例为例,你可以参考下 1、在xml里...

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

1963. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 74%]

...ff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Butto...

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

1964. layacmd 安装不成功 [ 74%]

... have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue...

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

1965. 使用Tween.to完成回调异常! [ 73%]

使用Tween.to完成回调异常! Tween.to(this.floatTxt, {y:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void {  this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景...

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

1966. HTTP以POST发送Byte字节流,服务器无法解析 [ 73%]

...e.log("starConnection"); conn=new HttpRequest(); conn.once(Event.PROGRESS, this, onHttpRequestProgress); conn.once(Event.COMPLETE, this, onHttpRequestComplete); conn.once(Event.ERROR, this, onHttpRequestError); var buffBody=new Byte(); buffBody.endian=Byte.BIG_ENDIAN; buffBody.writeInt32(9); buffBod...

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

1967. 点击list的时候触发的e.target永远是被点击的item? [ 73%]

....push({my_clip:i}); } my_list.array=arr; my_list.renderHandler=new Handler(this,onRender); } private function onRender(cell:Box,index:int):void { // TODO Auto Generated method stub var cell:Box=my_list.getCell(index) as Box; var my_btn:Button=cell.getChildByName("my_btn") as Button; var my_clip:Clip...

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

1968. layaair 2.0 个人觉得编辑器【难用】的地方 [ 73%]

...码自动完成功能也太..... 我用的ts,比如 我想写一个代码this.has() 我打到比较快,当我打到this.has( 的时候,编辑器自动帮我写成this.hasListener() 这很尴尬啊,我还得删。。。我不了解这个功能怎么设置,所以别的编辑器,例如vs co...

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

1969. 关于说明文档实战篇《微信飞机大战》的问题 [ 73%]

...的,我反馈一下 mrtian • 2018-10-09 18:40 谢谢回复,不过“this.roleAni.on(Laya.Event.COMPLETE,this,this.onCompleteAni);”这个代码不应该是监听动画播放完成的吗 mrtian • 2018-10-09 18:55 工程代码我更新了,mp3音频文件加载失败的问题,不知道是...

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

1970. 构建APP Android Studio打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function [ 73%]

...31703/com.mihe.carrom I/LayaBox: alert=apploader.js:4515:     TypeError: this._nativeObj.addGlobalValueDefine is not a function             return this._nativeObj.addGlobalValueDefine(modifyType, type, size, defaultData);                                    ^^          ...

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