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

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

621. movieClip stop 没有用 [ 76%]

...xueying 赞同来自: package { import laya.ani.swf.MovieClip; import laya.events.Event; public class DragonMaskDemo { public function DragonMaskDemo() { Laya.init(550, 300); swfPlay(); } private function swfPlay():void { var mc:MovieClip=new MovieClip(); mc.load('reset.swf'); mc.on(Event.LOADED,thi...

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

622. laya.ui.Slider [ 76%]

...All Classes | Index | Frames No Frames SliderProperties | Methods | Events Packagelaya.uiClasspublic class SliderInheritanceSlider UIComponent Sprite Node EventDispatcher ObjectSubclasses HSlider, VSlider 使用 Slider 控件,用户可以通过在滑块轨道的终点之间移动滑块来...

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

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

... (index > 5) index = 5; this.setCurPage(index) } public 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 > -...

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

624. laya.d3.webxr.core.WebXRCamera_API3.0 [ 76%]

...Children addCommandBuffer addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAn...

来源: Laya3.0_api 发布时间: 20231115

625. tiledMap 官方示例都运行不了 [ 76%]

...istrator/Documents/myLaya/Hello/bin/libs/laya.tiledmap.js:244:19)     at EventHandler.__proto.runWith (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.core.js:1125:59)     at Loader.__proto.event (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.core.js:882...

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

626. 鼠标down事件怎么不一定触发up事件呀,快速拖动某个物品是否只能检测down,不能检测到up,很奇怪的机制 [ 76%]

...一份demo上来我看看 lengyu • 2018-04-19 15:11 @w1114367261: spr.on(Event.MOUSE_DOWN, this, onStartDrag,arr); spr.on(Event.MOUSE_UP,this, onStopDrag,arr);,我就这两个函数,监听spr,这个sprite对象,然后再舞台上死命甩,就有可能会导致up事件不会触发呢,...

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

627. IOS微信内置浏览器陀螺仪问题 Laya2.4.0bate [ 76%]

...回调 已经测试过的方式: 以下三种方式都无返回 window.addEventListener('devicemotion', function(event){}) window.addEventListener('deviceorientation', function(event)  {}) Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation);  连接打开方式都由...

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

628. 左右上下能拖拽地图添加on事件报错 [ 76%]

...: 4 人 linyewen • 2022-02-25 17:45 这么修改也会报错吧,this._events[type]是个数组 linyewen • 2022-02-28 11:05 @linyewen:况且增加的this._events[type]上面不是已经判断过了吗 Laya_Yan • 2022-02-28 11:52 @linyewen:你按照图中还会报错吗?报错的话提供个...

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

629. 微信飞机大战报错 [ 76%]

...\node_modules\vscode-debugadapter\lib\protocol.js:24:60)     at emitOne (events.js:96:13)     at Socket.emit (events.js:188:7)     at readableAddChunk (_stream_readable.js:[...]   GameInfo.js代码: var GameInfo = (function(_super){     function GameInfo(){         GameInfo.super(this);...

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

630. 怎么打开第二个工程 [ 76%]

..._Aaron 赞同来自: package { import laya.device.media.Video; import laya.events.Event; import laya.utils.Browser; public class Main { public function Main() { Laya.init(500,500); Laya.stage.once(Event.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Brows...

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