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

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

81. 富文本过程中我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 51%]

...t.MOUSE_OUT, this, this._onMouseOut);             this.on(Laya.Event.MOUSE_MOVE, this, this._onMouseMove);   增加如下3个方法         _onMouseOver()         {             var tX = this.mouseX;             var tY = this.mouseY;             var i, len;       ...

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

82. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 50%]

...0, 0, 20, "#990000"); Laya.stage.addChild(sp);    Laya.stage.on(Event.MOUSE_MOVE, this, function() {     sp.pos(Laya.stage.mouseX, Laya.stage.mouseY); }); ``` ​ ![图片1.png](img/1.png) ​ (图1) ​ 此时FPS显示30,并且在鼠标移动时,可以感觉到圆球位置的更...

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

83. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 50%]

...drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` ![图片1.png](https://official.layabox.com/laya_data/Chinese/LayaAir_AS3/2D/advanced/PerformanceOptimization/CPU/img/1.png) (图1) 此时F...

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

84. destination-out 叠加模式问题 [ 50%]

...(range); //sp.scaleY=0.5; guideContainer.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,move); } private function move():void { sp.x=Laya.stage.mouseX; sp.y=Laya.stage.mouseY; sp.graphics.clear(); sp.graphics.drawCircle(0, 0, 200,"#0ef604"); } li970704928 • 2017-12-13 19:08 @Laya_Aaro...

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

85. 图片像素精准点击问题! [ 49%]

...n(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseUp, [true]); } /** 按钮动画处理 */ private hitTest(t: Laya.Image) { let s = t.source.getPixels(t.mouseX, t.mouseY, 1, 1).join('')...

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

86. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 49%]

...ircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` ![图片1.png](https://official.layabox.com/laya_data/Chinese/LayaAir_AS3/2D/advanced/PerformanceOptimization/CPU/img/1.png) (图1) 此时F...

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

87. UI-RefreshList [ 46%]

...tage.mouseY)); //鼠标按下的时候进行移动侦听 e.target.on(Event.MOUSE_MOVE, this, this.onItemBoxMouseMove, [e.target, index]); } } if (e.type == Event.MOUSE_UP) { this.mouseDown = false; this.itemOnMouseUp(); } //点击标记文本 if (e.target.name == "flag" && e.type == Event.CLICK) thi...

来源: Laya2.0_示例 发布时间: 20251130

88. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.finishScrollText); } /* 停止滚动文本 */ finishScrollText() { Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off...

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

89. laya.events.Event [ 43%]

...usedown[static] 定义 mousedown 事件对象的 type 属性值。Event  MOUSE_MOVE : String = mousemove[static] 定义 mousemove 事件对象的 type 属性值。Event  MOUSE_OUT : String = mouseout[static] 定义 mouseout 事件对象的 type 属性值。Event  MOUSE_OVER : String = mouseove...

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

90. 如何能监听到TouchStart和TouchEnd事件 [ 42%]

...定义 mousemove 事件对象的 type 属性值。*/         static MOUSE_MOVE: string;         /** 定义 mouseover 事件对象的 type 属性值。*/         static MOUSE_OVER: string;         /** 定义 mouseout 事件对象的 type 属性值。*/         stati...

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