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

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

881. .ani文件能预加载吗? [ 56%]

...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

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

... 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

883. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 56%]

...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); function processHandler(data){ console.log(data); } function errorHandler(...

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

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

... 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

885. Sprite3D的Layer(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 56%]

......... //切换图层按钮事件监听 changeActionButton.on(Event.CLICK, this, function():void { camera.removeAllLayers(); layerIndex ++; camera.addLayer(layerIndex%4 +1); camera.addLayer(5); }); ``` ![](img/1.gif)(图1)

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

886. 新手问一个动画的问题 [ 56%]

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

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

887. EventDispatcher接收不到参数 [ 56%]

...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

888. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 56%]

...ve an example here on how to encode your header based on the payload size (this is an php example) github.com/CycloneCode/WSServer/blob/master/src/WSServer.php – Cyclonecode Jul 7 '15 at 10:26 Here is another example: stackoverflow.com/questions/8125507/… – Cyclonecode Jul 7 '15 at 10...

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

889. 骨骼动画如何响应点击事件? [ 56%]

...事件,求助   //响应点击事件 humanSkeleton.on(Laya.Event.CLICK,this,onclickHuman);   function onclickHuman(){ console.log("onclickHuman"); } https://www.cnblogs.com/Jackie-Snow/p/8487607.html 网上的这个方式试了,没用,按照网上说是没有设置width与height 但是这个...

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

890. 使用发光滤镜后的第一个遮罩效果无效 [ 56%]

... var glowFilter = new Laya.GlowFilter("#ffff00", 10, 0, 0);        this.btnLoad.displayObject.filters = [glowFilter];         var ui_hpBarMask = new Laya.Sprite();         ui_hpBarMask.graphics.clear();         ui_hpBarMask.graphics.drawRect(0, 0, 154, 12, 0xffffff);  ...

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