大约有 1,754 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1137) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(42)
...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
... 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
...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
... 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
...----------------------------------------------------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar.zip 2016-12-21...
来源: Laya_社区 发布时间: 20161221
...00"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,chrorme就会警告cache bitmap size larger than 2048...
来源: Laya_社区 发布时间: 20180720
...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
...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
...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
...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