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

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

581. 图片添加点击事件 有的不生效 [ 77%]

... private init():void { //添加点击事件处理 this.v_btn_boy.on(Laya.Event.CLICK, this, this.onClickBtnBoy); this.v_btn_friend.on(Laya.Event.CLICK, this, this.onClickBtnFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 priv...

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

582. laya.ui.Slider [ 77%]

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

来源: laya_api 发布时间: 20170929

583. 官方的示例贴上来,怎么没反映啊 [ 77%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("https://api.weixin.qq.com/cgi- ... ot%3B, "", "get", "text"); function processHandler(...

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

584. 列表嵌套另外一个列表 [ 77%]

...seHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index } public function onRender(cell:Box,index:int):void { //当list刷新时接收并更改单元格属性 var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格 hero....

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

585. Button点击函数逻辑bug [ 77%]

...is.toggle === false && this._selected) return; if (e.type === Laya.Event.CLICK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state = Button.stateMap[e.type]); }上面逻辑当cli...

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

586. MOUSE_DOWN、MOUSE_UP,CLICK [ 77%]

...ER事件中无法播放 Laya UI系统 Mouse事件传递问题 Laya的Mouse Event有没有类似COCOS-JS的event.touch.getDelta() 鼠标 MOUSE_DOWN Event 回来的信息不符合 请教一下大家监听MOUSE_MOVE的问题 MOUSE_DOWN与MOUSE_MOVE同时存在,不起作用,哪位大神可以帮忙...

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

587. laya.ui.DialogManager [ 77%]

...asses | Index | Frames No Frames DialogManagerProperties | Methods | Events Packagelaya.uiClasspublic class DialogManagerInheritanceDialogManager Sprite Node EventDispatcher Object DialogManager 对话框管理容器,所有的对话框都在该容器内,并且受管理器管理。 任意...

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

588. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 77%]

...= Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf();   } });  })); }  genSpine(url, hand...

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

589. 精灵添加名称 [ 77%]

...  sp = project.drawsomething(20, 20+60*i, "#eeb9b3");         sp.on(Event.CLICK,this, onsp);         Laya.stage.addChild(sp);   }   private function onsp(e:Event){              console.log("监听到按钮"+e.target);              console.log((e.target.getChildAt(0) as ...

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

590. layaAir1.3.1版本SWF组件播放速度异常 [ 77%]

...后 示例如下: package { import laya.ani.swf.MovieClip; import laya.events.Event; public class AAA { private var swf:MovieClip; public function AAA() { Laya.init(550,400); swf=new MovieClip(); swf.load("data.swf"); swf.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(swf); } private function...

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