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

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

1171. list里面可以加入多个view吗? [ 85%]

...m<3;m++) { vdata.push({name:{text:'gggg'}}); //压入三个view对象 } this.lister.array = vdata; this.lister.vScrollBarSkin = ""; this.lister.scrollBar.hide = true; 整体UI结构: VIEW -----list --------view -------------label 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

1172. 绘制形状时事件不触发 [ 85%]

...时事件不触发 function myRing(x,y,r1,color1,r2,color2) {         this.sprite = new Laya.Sprite();     this.sprite.on('mousedown', this, on_down);     this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2);     this.sprite.graphics.drawCircle(x, y, r1, color1, color1, 0);     ...

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

1173. LayaAir引擎1.7 之后as转换js,出现问题 [ 85%]

... __getset(0,__proto,'visible',function(){ return Laya.superGet(SwatAniUI,this,'visible'); },function(value){ Laya.superSet(SwatAniUI,this,'visible',value); if (value) this._mcAni.removeFromParent(); }); //----Laya.superSet,没有这个方法吧?   1.7之前的转换 __getset(0,__proto,'visible'...

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

1174. Laya3.0 获取物体初始位置错误 [ 85%]

... 0 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 您好,在初始化this.initPos = this.rabbit.transform.postion;的时候,实际长拿到的是rabbit.transform.postion的引用,所以在修改rabbit.transform.position之后,打印的this.initPos也会同步变化;要解决这个问...

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

1175. native打包成app使用FileReader接口readAsArrayBuffer 时app崩溃 [ 85%]

...原因呢     doMsg:function(){                     if(this.msgs.length == 0 || !this.workDone){                         return;                     }                                      var data = this.msgs.shift();   ...

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

1176. laya.timer.clear这个定时器的回调函数到底怎么用啊?模拟器上不报错,真机运行会抱着个错 [ 85%]

...域, 要清理的定时器监回调方法(looppp)) Laya.timer.loop(100,this,looppp); 清理定时器是支持的哦!你看看你的清理是不是导致了你的代码错误! 2018-05-08 0 2 分享 微博 QZONE 微信 bbh 赞同来自: 模拟器上都没问题,就手机I上报了个错误 ...

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

1177. Node.prototype.removeChildren移除计数有问题 [ 85%]

...都存在: removeChildren(beginIndex = 0, endIndex = 0x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex >= childs.length - 1) { var arr = childs; this._children = Node.ARRAY_EMPTY; } else { arr = chil...

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

1178. 如何给Tab里的button设置点击事件? [ 85%]

...28 关注: 2 人 Y_Yao • 2017-05-16 10:26 function daoju() { daoju.super(this); this.Tab_ZM.selectHandler = new Laya.Handler(this, onSelect); } function onSelect(index) { console.log("当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLICK,this,onDaoju(index)); } 想...

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

1179. sk文件加载 [ 85%]

...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION);         }                  private function beginLoad():void {             //加载引擎需要的资源             // Laya.l...

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

1180. List滚动到底部事件 [ 85%]

...end',list,scrollBarHandler)   function scrollBarHandler(){         if(this.scrollBar.value == this.scrollBar.max){                 var that = this;                 setTimeout(function(){                      that.addItem("../../res/ui/listskins/5.jpg");          ...

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