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

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

51. List组件拖动浏览时item会出现重叠的现象 [ 78%]

...stage.addChild(list); // 设置数据项为对应图片的路径 var data: Array<string> = []; for (var i: number = 0; i < 2; ++i) { data.push("img_common_pinzhi0.png"); data.push("img_common_pinzhi1.png"); data.push("img_common_pinzhi2.png"); data.push("img_common_pinzhi3.png"); data.push(...

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

52. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 77%]

...dSprite); //初始化当前菜品下标 this.index = 0; //数据数组 foodArray = ; foodArray.push(new Food("菜品1", "1", 0)); foodArray.push(new Food("菜品2", "2", 1)); foodArray.push(new Food("菜品3", "3", 2)); foodArray.push(new Food("菜品4", "4", 3)); foodArray.push(new Food("菜品5", ...

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

53. 动画不显示 [ 77%]

...              //异步加载资源             var urls:Array = [];             for (var dir:int = 0 ; dir < 8; dir ++)             {                 for (var i:int = 0 ; i < 4 ; i ++)                 {                  ...

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

54. 【求助】关于Cannot read property 'visible' of undefined问题 [ 77%]

...Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsList.push(new Food("菜品3", "3", 2)); foodsList.push(new Food("菜品4", "4", 3)); foodsList.push(new Food("菜品5", "...

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

55. list item 添加事件后无法监听 [ 76%]

...es/ui/listskins/4.jpg"); data.push("../../res/ui/listskins/5.jpg"); } list.array = data; }   function updateItem(cell, index) { cell.setImg(cell.dataSource); }   function onSelect(index) { console.log("当前选择的索引:" + index); } })(); 2018-07-25 0 0 分享 微博 QZONE 微信 为什么...

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

56. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 75%]

...es/ui/listskins/4.jpg"); data.push("../../res/ui/listskins/5.jpg"); } list.array = data; }   function updateItem(cell, index) { cell.setImg(cell.dataSource); }   function onSelect(index) { console.log("当前选择的索引:" + index); } })(); 2018-07-31 添加评论 免费帖 --> 分享 微博 ...

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

57. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 75%]

... 2018-05-08 0 1 分享 微博 QZONE 微信 Miller 赞同来自: rankList.array = data; rankList.height = 670; 我试了一下,大概高度超过670这个list高度就不变了,即使把高度设置成1000,list也是显示这么长。往小的方向改是可以有效果的,但超过670就对l...

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

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

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

59. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 74%]

...ui/listskins/4.jpg"); // data.push("../../res/ui/listskins/5.jpg"); } list.array = data; } function updateItem(cell, index) { cell.label.text = cell.dataSource.lb; cell.input.text = cell.dataSource.value; // cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索...

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

60. 分享:List相关(Item增删功能) [ 73%]

...ass LayaUISample { private var listP:ListPageUI;//UI面板 private var arr:Array;//list数据数组 public function LayaUISample() { //初始化引擎 Laya.init(600, 800); Laya.stage.bgColor = "#ffcccc"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader....

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