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

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

1771. HTMLIframeElement报错 [ 55%]

...parseFromString(value,'text/xml'); if (rst.firstChild.textContent.indexOf("This page contains the following errors")>-1){ throw new Error(rst.firstChild.firstChild.textContent); } return rst; } 2018-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

1772. .ani文件能预加载吗? [ 55%]

...on("ani/TX001.ani"); //动画播放完的事件 ani.on(Laya.Event.COMPLETE,this,(ani:Animation)=>{ ani.removeSelf(); ani.destroy(); },[ani]); ani.play(0,false); 2018-06-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

1773. Tween动画中的Sprite点击事件失效 [ 55%]

... Tween动画中的Sprite点击事件失效: 简单代码: var self = this; self.loserPrize.on(Laya.Event.MOUSE_DOWN,self,function(){     self.clickHanlder(); }) Laya.Tween.to(self.loserPrize, {      y: Laya.Browser.clientHeight }, Math.random() * 1500); self.gameZone.addChild(self.loserPriz...

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

1774. 请问object层中添加的sprite怎么添加点击事件 [ 55%]

... 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

1775. 时间帧更新问题 [ 55%]

时间帧更新问题 var t=Date.now(); Laya.stage.frameLoop(1,this,function(){        Message.show(Date.now()-t+"_"+Laya.stage.frameRate);       t=Date.now(); }) 写了上面的简单Demo测试,发现用运行器运行,每一帧的时间间隔都是50-70毫秒,但如果在浏览器运...

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

1776. 使用 loader.create 预加载模型后。必须要在回调 Laya.Event.HIERARCHY_LOADED 中获取子元素吗?预加载是预加载的什么部分? [ 55%]

...es("LayaScene_effect/effect.lh")); effect3D.once( Event.LOADED , this,function(sprite){ var child=effect3D.getChildAt(0); } ); sfsmmc • 2017-08-21 15:53 我试过,在loader.create预加载资源完成后,通过 Laya.loader.getRes("LayaScene_effect/effect.lh") 是不会触...

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

1777. 新手问一个动画的问题 [ 55%]

...    addChild(views);             views.ani1.on(Event.COMPLETE,this,playStop);             views.ani1.play(); 接着在时间中停止,然后画面就空了,难道不是停到动画的最后一帧吗? views.ani1.stop();             var bt:Sprite  = views.getChildB...

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

1778. EventDispatcher接收不到参数 [ 55%]

...ar Dispatcher = (function(_super){ function Dispatcher(){ Dispatcher.super(this); }; //注册类 Laya.class(Dispatcher,"Dispatcher",_super); //实例EventDispatcher类 Dispatcher.eventDispatcher = new Laya.EventDispatcher(); //发送事件 Dispatcher.Emit = function(InName,agv){ //派发事件 conso...

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

1779. drawToCanvas无法释放内存 [ 55%]

drawToCanvas无法释放内存 Laya.stage.frameLoop(1, this, ZX);function ZX():void{ var tex:Texture=new Texture(sp.drawToCanvas(sp.width,sp.height,0,0))             sp.graphics.clear()             sp.graphics.destroy()             tex.destroy()         ...

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

1780. 自定义控件能否放在任意目录 [ 55%]

...Manager.getWorkPath("laya/custom"); console.log("customUI:",uiConfigPath); this.initCustomUIConfig(uiConfigPath,false); 也就是把教程的里的东西搬到 自己的项目路径/laya/custom 下 2018-05-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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