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

大约有 735 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)

381. hBox使用问题 [ 63%]

hBox使用问题 Laya.loader.load(picAy,Handler.create(this, onAssetLoaded)) private function onAssetLoaded():void { for(var i:int=0;i<picAy.length;i++) { var texture:Texture= Loader.getRes(picAy); var ape:Sprite = new Sprite; //ape.x=i*(stageWidth/4) //Tween.to(ape, { x : i*(stageWidth/4) },150...

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

382. 资源路径问题 [ 63%]

...种文件放不同的图片。。发现加载图片时加载不了。 Laya.loader.load(["res/atlas/img/hall.json"],Laya.Handler.create(this, onLoaded),null,Laya.Loader.ATLAS);无法加载。。。怎么回事 2017-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

383. 粒子释放问题 [ 63%]

...子释放问题 (function() { var Stage            = Laya.Stage; var Loader           = Laya.Loader; var Particle2D       = Laya.Particle2D; var Browser          = Laya.Browser; var Handler          = Laya.Handler; var Stat             = Laya.Stat; var WebGL      ...

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

384. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 63%]

...近做到这一块,就分享给大家。  //首先是加载资源 Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.bo...

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

385. handler携带的参数在回调函数里面怎么获取? [ 63%]

...请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load("res/atlas/war/hero.atlas", Handler.create(this, this.onLoad), null, Loader.ATLAS); 什么意思,, 2018-03-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

386. 微信上测试加载服务器资源 [ 63%]

...上测试加载服务器资源 URL.basePath = "http://212.xx.xx.xx/"; Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,loadComplete)); loadComplete(){显示自己的ui}; 项目设置选择不校验合法域名。(我没有配置域名,用IP可以吗?) 发现comp.atlas是加载下...

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

387. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 63%]

...ar sprite_:Sprite = new Sprite(); var bitmap_:BitmapData = new BitmapData(_loader.width, _loader.height); bitmap_.draw(_loader, new Matrix()); var matrix:Matrix = new Matrix(); matrix.rotate(Math.PI/4); sprite_.graphics.beginBitmapFill(bitmap_, matrix, true); sprite_.graphics.drawRect(100, 50, 200, ...

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

388. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 63%]

...   {             Laya.init(550,400);             Laya.loader.load("walk.png",Handler.create(this,onLoaded));         }         private function onLoaded():void         {             var texture:Texture=Laya.loader.getRes("walk.png");            ...

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

389. 微信小游戏加载外部json可以加载成功,但是加载外部图片就不行,没有任何反应 [ 63%]

...加载成功,但是加载外部图片就不行,没有任何反应 Laya.loader.load(["https://xxdzz.shoujiyeyou.net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json");   Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handl...

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

390. 如何用代码控制panel的vscroll滚动幅度 [ 63%]

...ueying 赞同来自: package { import laya.display.Sprite; import laya.net.Loader; import laya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,...

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