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

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

291. 动画、界面处理效率方面的问题 [ 56%]

... 动画(1)与在 Flash 中“导出png序列”后使用 Animation 的 loadImages() 做成序列动画(2);导出png序列后多张图片的体积要比swf文 件大不少,这两者单从资源占用方面看 swf 似乎更有优势,但感觉 Animation 序列动画更方便控制些。...

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

292. 在Laya2上 getGraphicBounds获取失败 [ 56%]

...人 忽啊忽啊 • 2018-11-21 13:59 this.sp = new Laya.Sprite(); this.sp.loadImage("Attack_0_0002.png", Laya.Handler.create(this, (data)=>{ this.sp.graphics.drawTexture(this.sp.texture); var bounds = this.sp.getGraphicBounds(true); })); 这样绘制后,最后拿到的宽高就是图...

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

293. 如何往TiledMap格子内追加精灵 [ 56%]

...te Bear End } function createSprite(no){ var flower = new Sprite(); flower.loadImage(texture1); flower.pos((0 + no) * 99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flower.scaleY=1.1; Laya.timer.once(100, this,function() { flower.scale...

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

294. 官方视频教程中飞机大战 "this.addChild is not a function" [ 56%]

...ckGround(){ BackGround.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("war/background.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.Sprite);报错 "TypeError: this.addChild is not a function    at BackGround (file:///D:/test...

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

295. 生成的粒子特效怎么设置colorComponentInter无效? [ 56%]

...ILetterBox(letter, width) { UILetterBox.super(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorComponentInter = true; sp = new Partic...

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

296. laya.ui.ColorPicker [ 55%]

...:Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多...

来源: laya_api 发布时间: 20170929

297. laya.ui.CheckBox [ 55%]

...:Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多...

来源: laya_api 发布时间: 20170929

298. 怎么获取手机相册内容 [ 55%]

...FileReader.DONE==fileReader.readyState) { var sp:Sprite = new Sprite(); sp.loadImage(fileReader.result,0,0,100,100); Laya.stage.addChild(sp); } }; } } } 2018-05-29 0 8 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 ...

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

299. laya.ui.Image [ 55%]

...:Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多...

来源: laya_api 发布时间: 20170929

300. 技术文档svg不可以使用 [ 55%]

...;' +'</foreignObject>' +'</svg>';var sp = new Laya.Sprite();sp.loadImage(data, 0, 0, 200, 200);Laya.stage.addChild(sp);   这段代码无法使用 附件 : --> svg.zip 2019-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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