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

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

71. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 71%]

...时间轴动画如何设置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-17 添加评论 免...

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

72. 子容器的事件问题 [ 71%]

...问题 // 程序入口 Laya.init(800, 800); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: ViewHeadViewTest = new ViewH...

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

73. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 71%]

...加载图集成功后,执行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(comp); //点击Tab选择按钮的处...

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

74. 调用时间轴动画丢失皮肤问题? [ 70%]

...那个例子~ haisenshushu • 2018-03-29 15:48 Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"); //添加到舞台 ...

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

75. 为什么加载进度回调只调用了一次。下面有代码,求解答 [ 70%]

...面有代码,求解答 Laya.loader.load(     // 资源     [{url:'res/atlas/comp.json',type:Laya.Loader.ATLAS}].concat(loadArr),     // 加载完成回调     Laya.Handler.create(null,function(){         var logintest = new loginTestView().init();         Laya.stage.addChild(logintes...

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

76. 在微信小游戏中使用BitmapFont会导致报错. [ 70%]

...gisterBitmapFont('Name', timerFont);         Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded));     })); }  function onLoaded(): void {     //实例UI界面     var testUI: TestUI = new TestUI();     Laya.stage.addChild(testUI); } 附件 : --> src.rar ...

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

77. 自定义loadingView [ 70%]

...ing(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Browser.window.loadingView

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

78. 关于canvas下资源释放的问题 [ 70%]

...   图集地址或者texture地址,比如 Loader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg");              */         public static function clearTextureRes(url:String):void { 2018-04-25 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: ...

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

79. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 70%]

...GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya....

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

80. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 69%]

...: 星星 loader支持加载Arr序列加载 var altsArr:Array=[ {url:"res/atlas/comp.atlas", type:Loader.ATLAS}, {url:"bitmapFont/timeFont.fnt", type:Loader.FONT}, {url:"bg/hallroom-bg.png", type:Loader.IMAGE}, {url:"bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.create(thi...

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