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

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

1641. ToolTip鼠标悬停的使用 [ 47%]

...er;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya...

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

1642. JSON文件加载成功后,怎么解析成Object对象 [ 46%]

... txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id']); traceMsg(te...

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

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

...st.repeatX = 1; list.repeatY = 4; // list居中显示 list.x = (Laya.stage.width - ListDataSourceItem.WID) / 2; list.y = (Laya.stage.height - ListDataSourceItem.HEI * list.repeatY) / 2; // 使用但隐藏滚动条,滚动条水平滚动 list.vScrollBarSkin = ""; // list.vScrollBarSkin 滚动条垂直...

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

1644. 两个问题都关于LayaAir的ios真机 [ 46%]

... photo.loadImage(AppConfig.httpPhotoUrl+UserData.username,0,0,gui.imgPhoto.width,gui.imgPhoto.height ); gui.imgPhoto.addChild(photo); gui.imgPhoto.mask=mask;载入的头像在浏览器ok,在真机构建的app上就有问题,真机上如果没mask,头像正常,如果加了mask,就不显示...

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

1645. LayaAir 寻路库,寻路路径错误 [ 46%]

...----------------------------------------------------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar.zip 2016-12-21...

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

1646. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 46%]

...00"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是00,只要设置了mask,chrorme就会警告cache bitmap size larger than 2048...

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

1647. JS进度条加载问题 [ 46%]

...w Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progressBar.changeHandler=new Handler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChild(progressBar); onchange(); } function onChange(value) { trace("进...

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

1648. laya.d3.resource.DataTexture2D [ 46%]

...ture  src : String[read-only] 获取文件路径全名。 DataTexture2D width : int[read-only] 获取宽度。 BaseTexturePublic Methods  MethodDefined By  DataTexture2D() 创建一个 Texture2D 实例。 DataTexture2D  create(data:ArrayBuffer, w:int, h:int, magfilter:int, minfilter:int, mip...

来源: laya_api 发布时间: 20170929

1649. 这样的panel请问如何实现比较好? [ 46%]

...Laya.init(500, 1000, WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test...

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

1650. 将字节数组转为图片 [ 46%]

...le%3A///1c4effc4-4022-4ab5-8feb-e39ff76b7410             trace(sp.width);//0             /**              * 其他调试信息打印:              * [warn]Retry to load: blob:file%3A///1c4effc4-4022-4ab5-8feb-e39ff76b7410                [error]Failed t...

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