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

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

481. 求解关于跨域的具体操作 [ 74%]

...tHeader('Content-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04...

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

482. 两个小问题 [ 74%]

...、一个面板中含有几个按钮,分别为按钮添加 this.myBtn.on(Event.CLICK) 事件,点击某按钮后有时还会发送事件 this.event(...),在关闭面板时设置 this.removeSelf() ,下次生成同类型的对象面板可正常打开;若在关闭时设成 this.destroy() 或 t...

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

483. TimeLine调用destroy报错&执行完成后回到起点 [ 74%]

...leX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } private function onComplete():void { trace("timeLine complete!!!!"); timeLine.pause(); timeLine.destroy(); // Laya.timer.frameOnce(10, this...

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

484. timeline 类动作节点回调 [ 74%]

...leX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔...

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

485. 关于3d场景上Button点击事件顺序问题 [ 74%]

...按钮button。 2,在场景中加入了鼠标点击事件  Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick);   private function sceneClick():void {     trace("scene clicked"); }   3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void {     e....

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

486. 射线一直无法获取物体 [ 74%]

... = scene.addChild(Laya.Sprite3D.load("./test.lh"));     qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){         qb_pet.addComponent(Laya.SphereCollider);     });   设置射线:    Laya.timer.frameLoop(1, null, checkHit);     var hit = new Laya.RaycastHit();     var point...

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

487. 代码创建精灵监听不到事件? [ 74%]

...e); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]);   var _proto = StorageUILayer.prototype;   _proto.onclick = function(params){ console.log("--------------------------------hhhhhhhhhhh- "); }   -------------------------------------...

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

488. error TS2339: Property 'delta' does not exist on type 'Event'. [ 74%]

error TS2339: Property 'delta' does not exist on type 'Event'. IDE版本号:1.7.17 2018-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 你查看下你的代码是否有问题那...

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

489. laya.sprite 不接受click事件 [ 74%]

...能触发onCollisionEnter事件 遮罩点击事件 点击事件不起效 event自定义事件的问题 问题状态 最新活动: 2020-08-07 17:31 浏览: 281 关注: 2 人

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

490. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 74%]

鼠标 MOUSE_DOWN Event 回来的信息不符合 为什么回来的是 “mouseout” 而不是 "mousedown" ? 代码如下: function createSprite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pi...

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