大约有 856 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(759) Laya2.0_文档(27) Laya_示例(19) Laya3.0_文档(16) Laya2.0_示例(14) Laya2.0_api(9) laya_api(9) Laya3.0_api(3)
...码,确保_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
....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
...? 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
... 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
...回复 186*****260 赞同来自: 发现是 第二个txt的 txt.on(Event.MOUSE_DOWN, this, startScrollText); 这个函数监听不到 屏幕外的txt监听不到? 必须移动到屏幕里面才能加这个代码? 移动到里面也再加也不行啊 在编辑器里做过ui 然后 放2个tex...
来源: Laya_社区 发布时间: 20170429
动画模板只是拖到控件上就可以使用?是不是只有mousedown等事件才能触发?我想做一套动画,比如图片的反转,缩小,这个应该怎么做? 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20170417
...加鼠标按下事件侦听。按时时缩小按钮。 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
...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
...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
...f不起作用 好像1.7.17类库创建阴影和发光滤镜不起作用哦 MOUSE_DOWN与MOUSE_MOVE同时存在,不起作用,哪位大神可以帮忙看看,是为什么 关于2.0 list的scrollRect 不起作用 问题状态 最新活动: 2017-11-30 18:21 浏览: 894 关注: 2 人 kezhiyu • 201...
来源: Laya_社区 发布时间: 20171130