大约有 44 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)
...CK,this,OnMouseDown); Content.once(Event.MOUSE_OUT,this,OnMouseDown); Laya.stage.once(Event.FRAME,this,onEnterFrame); 这样事件都监听不到? Laya_Aaron • 2018-06-11 17:52 你描述的我也不懂是什么意思,只能推测意思。 黄进 • 2018-06-11 20:10 @Laya_Aaron:“Content”...
来源: Laya_社区 发布时间: 20180611
...ture.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //chang...
来源: Laya_社区 发布时间: 20170818
..."Uncaught TypeError:Cannot set property 'y' of null"的解决方案 修改stage的scale后,会发生异常情况 重力感应 Accelerator 发布微信游戏后失效。是因为什么? 问题状态 最新活动: 2018-01-10 14:13 浏览: 708 关注: 2 人 Laya_Aaron • 2018-01-10 15:03 我这边...
来源: Laya_社区 发布时间: 20180110
...ppStatus = AppEvent.onShow; console.log(this.appStatus, '---------'); Laya.stage.renderingEnabled = true//恢复渲染 Laya.updateTimer.resume() //恢复onUpdate Laya.timer.resume(); //恢复时间 Laya.timer.scale = 1; }) window['wx'].onHide(() => { this.event(AppEvent.onHide); this.appStatus = ...
来源: Laya_社区 发布时间: 20200917
...ZONE 微信 Laya_Aaron 赞同来自: view 或者 ui的点击层并没有和stage尺寸一致,小游戏强制拉伸之后可能导致 点击区域并没有跟着拉伸 2018-07-18 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 是自己的UI布局有问题,导致点击区域偏移,或...
来源: Laya_社区 发布时间: 20180629
...height<100){ var bgImg = new Laya.Sprite(); bgImg.loadImage(data); Laya.stage.addChild(bgImg) }else{ console.log("图片超标"+width+"--"+height); } }; img.src =data; } }; 2019-01-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20190129
... this.list = list; Laya.stage.addChild(list); this.hitArea = new Laya.HitArea(); this.hitArea.hit.drawRect(list.x, list.y -100,list.width, list.height, "#000000"); //限制鼠标点击区域 ...
来源: Laya_社区 发布时间: 20210122
...loadImage方法为什么不触发complete? var logo = new Sprite(); Laya.stage.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete不触发?...
来源: Laya_社区 发布时间: 20181010
... tiledMap.createMap("../res/dt.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); 调用后报错TypeError: Cannot read property 'split' of undefined at TiledMap.__proto.mergePath (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.tiledmap.j...
来源: Laya_社区 发布时间: 20181026
... g_stat_heiht); 加入下列代码设置窗口位置和拉伸效果。Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; 2.设置标题和输出信息 网上...
来源: Laya_社区 发布时间: 20160623