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

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

471. 分享:SWF LABEL标签的使用! [ 75%]

...L标签的使用!  package { import laya.ani.swf.MovieClip; import laya.events.Event; public class SwfLabelUse { private var mc:MovieClip; public function SwfLabelUse() { Laya.init(600,600); Laya.stage.bgColor="#EEFFCC"; mc=new MovieClip(); mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoa...

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

472. Templet资源删除不掉 [ 75%]

...          factory = new Templet();             factory.on(Event.COMPLETE, this, onSkeletonDataParsed); //            factory.on(Event.ERROR, this, onError); //            factory.parseData(texture, data, 60);             factory.loadAni("res/Dragon.sk");  ...

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

473. 陀螺仪和加速计使用问题 [ 75%]

陀螺仪和加速计使用问题 Laya.Gyroscope.instance.on(Laya.Event.CHANGE,this,this.onDeviceorientation);  Laya.Accelerator.instance.on(Laya.Event.CHANGE,this,this.onMotoin); 官网陀螺仪和加速计例子中的上面两句运行时都报 Cannot read property 'instance' of undefined 的错...

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

474. Laya 中用什么事件可以检测声音是否播放结束? [ 75%]

...var _channel:Channel = new Channel(); _channel=_sound.play( ); _channel.addEventListener(Event.SOUND_COMPLETE,onComplete); 而Laya 中用什么事件可以检测声音是否播放结束? 2017-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

475. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 75%]

...代码,了解这两个方法的使用。 ```java package { import laya.events.Event; import laya.map.TiledMap; import laya.maths.Rectangle; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class TiledMapDemo { private var tMap:TiledMap; private var scaleValue:N...

来源: Laya2.0_文档 发布时间: 20210714

476. HTTP以POST发送Byte字节流,服务器无法解析 [ 75%]

...ction() { console.log("starConnection"); conn=new HttpRequest(); conn.once(Event.PROGRESS, this, onHttpRequestProgress); conn.once(Event.COMPLETE, this, onHttpRequestComplete); conn.once(Event.ERROR, this, onHttpRequestError); var buffBody=new Byte(); buffBody.endian=Byte.BIG_ENDIAN; buffBody.writeI...

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

477. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 75%]

...is, onLoading, null, false)); // 侦听加载失败     Laya.loader.on(Event.ERROR, this, onError);     this.moveover =true;     function onAssetLoaded(texture)     {         console.log("加载结束");         pic="res/castlebeyond.jpg";         this.bgimg =...

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

478. 加载成功要怎样判断呢? [ 75%]

...? 不管是Laya.loader.load(url, onLoaded, ...) 还是Laya.loader.on(Event.COMPLETE, this, onLoaded); 加载失败都会到onLoaded,那怎么区分是不是加载成功? 2017-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

479. Animation 下的Event.COMPLETE 回调 [ 75%]

Animation 下的Event.COMPLETE 回调 加入回调 为啥 我的动画都不播放了 _gameTableScene["donghua"+ transformToDesignIndex(msg.index)]._childs[0].on(Event.COMPLETE,null,OnAnimation()); 是我写的不对吗? 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

480. 从网络上下载的BMP图片二进制数据后,如何赋值给 laya.ui.Image [ 75%]

...         var req = new laya.net.HttpRequest();         req.on(laya.events.Event.COMPLETE, this, cb_onSuccess);         req.on(laya.events.Event.ERROR, this, cb_onFail);         req.send(url);      }      // 下载jpg图片成功后,显示在舞台上,response为 bmp图片...

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