大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0058 秒)
... } this.ElementView.addChild(clip); } config.xml本份规矩,老老实实,勤勤恳恳用utf8编码的,长这个样子 <layout> <clip id="1" res="res/logo.png" anchorX="0.5" anchorY="0.5" clipX="...
来源: Laya_社区 发布时间: 20170918
...le.log("线段数量:", wayList.length); this.mainScene.addChild(pl); for (let i = 1; i < wayList.length; i++) { pl.addLine(wayList[i - 1], wayList[i], Laya.Color.RED, Laya.Color.RED); } 2019-11-19 0 2 分享...
来源: Laya_社区 发布时间: 20180426
...eList.vScrollBarSkin = ""; this._furnitureList.array = []; this..addChild(this._furnitureList); } private __renderFurnitureItem(cell:FurnitureItemCell, index:number):void { cell.furnitureInfo = cell.dataSource; } http://layaair.ldc.layabox.com ... DList 官方例子也有。 你不写逻...
来源: Laya_社区 发布时间: 20180321
...age = new Laya.Image(this.aUrl); aImg.scaleX = aImg.scaleY = 2; Laya.stage.addChild(aImg); aImg.mouseEnabled = false; this.aImg = aImg; } //清除目标纹理的像素 let _sourceTex:Laya.Texture = Laya.Loader.getRes(this.aUrl); let ret = new Uint8Array(_sourceTex.width * _sourceTex.height * 4); let...
来源: Laya_社区 发布时间: 20230328
...2); this.fly.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.diango.addChild(this.fly) this.diango.show(); this.diango.popup(); } _proto.onClose = function () { this.diango.close(); } return Loading_fly; }(Laya.Sprite); 2017-11-08 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 根据...
来源: Laya_社区 发布时间: 20171107
...到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 } private function errorHandler(e:Object):void { } 是无法显示图片的 而用JS开发,用JS的事例,却是可以显示的 2017-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20171011
...图片到舞台 var sp = new Laya.Sprite(); sp.loadImage(url); Laya.stage.addChild(sp); //添加到舞台 }; GameMain.prototype.errorHandler = function (e) { }; return GameMain; }()); new GameMain(); //# sourceMappingURL=LayaSample.js.map 但运行在玩一玩平台下调用相同代码则返回Requ...
来源: Laya_社区 发布时间: 20180629
... this.txt.fontSize=20; this.txt.color="#ffffff"; Laya.stage.addChild(this.txt); this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){ this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_M...
来源: Laya_社区 发布时间: 20170810
...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } 2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\HelloWorld.as" /> </compileTargets> 3. 运行后依然编译执行默认生成的LayaSamples.as 2018-09-14...
来源: Laya_社区 发布时间: 20180914
...00); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num ; trace(num); Tween.clearTween(onTween1); Tween.t...
来源: Laya_社区 发布时间: 20160913