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

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

221. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 67%]

...码,确保_owner不为null if(_isScal&&_owner) { _owner.on(Event.MOUSE_DOWN,this,onDown); } else { return; } } public function get isScale():Boolean { return _isScal; } public function set isScale(isScal:Boolean):void { this._isScal=isScal; } private function onDown():void { //按下,按...

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

222. [LayaAirIDE3]2d相机打包后问题 [ 67%]

....owner as Laya.Sprite;         owner.size(420, 420);         owner.mouseEnabled = true;          this.bg = new Laya.Sprite();         this.bg.graphics.drawCircle(210, 210, 210, "#FFFFFF", 3);         this.bg.alpha = 0.7;         owner.addChild(this.bg);          this.kn...

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

223. Sprite optimizeScrollRect = true 似乎有问题 [ 66%]

...? this.height : 1; this.mask.addChild(this.content); this.content.on(Event.MOUSE_DOWN, this, this.onMouseDown); this.content.on(Event.MOUSE_WHEEL, this, this.onMousewheel); } this.createText = function (_content, _fontSize, _color, _width, _autoSize, _wordWrap, _ID) { var txt = new Text(); txt.text ...

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

224. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 66%]

...       Laya.stage.addChild(imag);             imag.on(Event.MOUSE_DOWN,this,onDown);             imag.on(Event.MOUSE_UP,this,onUP);         }                  private function onDown():void{             imag.startDrag();         }        ...

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

225. http://layaair.ldc.layabox.com/demo/?Text_Scroll 这个场景中只能有一个吗 我加了第二个 就不滚了 [ 66%]

...回复 186*****260 赞同来自: 发现是 第二个txt的 txt.on(Event.MOUSE_DOWN, this, startScrollText); 这个函数监听不到  屏幕外的txt监听不到?  必须移动到屏幕里面才能加这个代码?  移动到里面也再加也不行啊   在编辑器里做过ui 然后 放2个tex...

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

226. 动画模板只是拖到控件上就可以使用?是不是只有mousedown等事件才能触发?我想做一套动画,比如图片的反转,缩小,这个应该怎么做? [ 65%]

动画模板只是拖到控件上就可以使用?是不是只有mousedown等事件才能触发?我想做一套动画,比如图片的反转,缩小,这个应该怎么做? 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

227. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 65%]

...加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //添加鼠标抬起事件侦听。抬起时还原按钮。 this.on(Laya.Event.MOUSE_UP,this, this.scaleBig); //添加鼠标离开事件侦听。离开时还原按钮。 this.on(Laya.Event.MOU...

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

228. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...derColor = "#fa1515"; this.txt.overflow = "scroll"; this.txt.on(Laya.Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ startScrollText() { prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.M...

来源: Laya3.0_文档 发布时间: 20251010

229. 在UI类里调用启动类的静态函数失败了 [ 64%]

...nds ui.GameInfoUI { constructor() { super(); this.kaishi_btn.on(Laya.Event.MOUSE_DOWN, this, this.onStart); // Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.birdFly);//可以绑定两个函数 Laya.stage.on(Laya.Event.KEY_DOWN, this, this.birdFly); this.init(); } public init(): void { Laya.Tween.t...

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

230. putimagedata 不起作用 [ 64%]

...f不起作用 好像1.7.17类库创建阴影和发光滤镜不起作用哦 MOUSE_DOWN与MOUSE_MOVE同时存在,不起作用,哪位大神可以帮忙看看,是为什么 关于2.0 list的scrollRect 不起作用 问题状态 最新活动: 2017-11-30 18:21 浏览: 894 关注: 2 人 kezhiyu • 201...

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