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

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

231. 分享问题解决,关键词:canvas不在左上角,鼠标点击位置偏移怎么办 [ 79%]

.../ this._point.setTo(e.pageX || e.clientX, e.pageY || e.clientY); if (this._stage._canvasTransform) { this._stage._canvasTransform.invertTransformPoint(this._point); _this.mouseX = this._point.x; _this.mouseY = this._point.y; } _this._event.touchId = e.identifier || 0; this._tTouchID = _this._event.t...

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

232. 滤镜问题,有复现demo [ 79%]

...将btn.fitlers = null,这时舞台绘画的消失了???? */ Laya.stage.graphics.drawRect(200, 200, Laya.stage.width / 2, Laya.stage.height / 2, "#ffff00"); var btn:Sprite = new Sprite(); btn.size(200, 100); btn.graphics.drawRect(0, 0, btn.width, btn.height, "#ff00ff"); Laya.stage.addChild(bt...

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

233. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 79%]

...1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一个动画 var ani:Animation = new Animation(); ani.loadAtlas("res/fighter.atlas"); ani.play(); ani.pos(400, 200); sp.addChild(ani); Laya.stage.on("keydown", this, onKeyDown); Stat.show(); } priv...

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

234. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 79%]

...1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一个动画 var ani:Animation = new Animation(); ani.loadAtlas("res/fighter.atlas"); ani.play(); ani.pos(400, 200); sp.addChild(ani); Laya.stage.on("keydown", this, onKeyDown); Stat.show(); } priv...

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

235. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 79%]

...u • 2018-03-16 09:54 (function (){ (() => { Laya.init(800, 600); Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(0,0); loadResource(); })(); ...

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

236. laya.display.AnimationBase [ 79%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

来源: Laya2.0_api 发布时间: 20190513

237. 求HTTP相关的文档或者例子谢谢了 [ 79%]

...ss HTTP_URLRequest extends Sprite { public function HTTP_URLRequest() { if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { //第一步:加载数据:创建URLLoader对象 var urlLoader:URLLoader=new URLLoader(); //第二...

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

238. 鼠标出屏事件 [ 79%]

... 请问能不能监听到鼠标出屏的事件?           Laya.stage.on(Laya.Event.MOUSE_OUT, this, function(){console.log("mouseout")});         Laya.stage.on(Laya.Event.MOUSE_UP, this, function(){console.log("mouseup")});     mouseup能正常监听到,stage上加的MOUSE...

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

239. laya.ui.Button [ 79%]

...,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以...

来源: laya_api 发布时间: 20170929

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

...了一个按钮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 {...

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