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

大约有 187 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0062 秒)

121. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 58%]

...ntSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ function startScrollText(e) { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finis...

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

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

...       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

123. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 58%]

...lic onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -1) { if (this.list_rule.scrollBar.value < this.m_dow...

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

124. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 58%]

...pescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 th...

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

125. 如何对3D精灵进行鼠标检测(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 58%]

...pescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 th...

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

126. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 58%]

...   {         createMap();          Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown);         Laya.stage.on(Event.MOUSE_UP, this, mouseUp);     })(); //创建地图     function createMap()     {         //创建地图对象         tiledMap = n...

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

127. parent加载多个child,parent不响应鼠标事件? [ 58%]

...应鼠标事件? parent加载了child1,child2,child3, parent.on(Event.MOUSE_DOWN, this, function(){     trace("parent被点击了!"); });     其中child1,child2,child3都是load图片的Sprite,为何parent(它也是个Sprite)识别不到鼠标事件? 2017-03-12 添加评论 免费帖...

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

128. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 58%]

...码 this.ape.graphics.drawCircle(50, 50, 30, "#ff0000"); this.ape.on(Event.MOUSE_DOWN, this, this.onStartDrag); } private showDragRegion(): void { //拖动限制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragRegion = new Rectangle(Laya.stage.width - dragWidthLim...

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

129. 如何对3D精灵进行鼠标检测(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 57%]

...```typescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Event.MOUSE_DOWN,this, onMouseDown); } //点击触发事件 private function onMouseDown():void { //记录点击到舞台上的点 point.x = MouseManager.instance.mouseX; point.y = MouseManager.instance.mouseY; //产生射线 _came...

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

130. 按钮点击或者快速点击有可能会不还原,还停留在按下状态 [ 57%]

...不还原,还停留在按下状态 按钮的响应设置的是Laya.Event.MOUSE_DOWN,切得是正常和按下效果两张图片,快速点击或者点击 有时候会出现还停留在按下效果的状态   2018-04-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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