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

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

161. http无响应 [ 67%]

... = function () { //监听登录按钮按下事件 this.login.on(Laya.Event.CLICK,this,this.onButtonLogin); //忘记密码 this.wjmm.on(Laya.Event.CLICK,this,this.onLableWjmm); } //登录按钮响应函数 LoginView.prototype.onButtonLogin = function () { if(this.user.text == "" || this.user.text =="...

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

162. Image.loadImage 方法加载问题 [ 66%]

...rt class PublicSpaceItem extends Laya.Box  {   public static BTN_ENTRER_CLICK:string = "BtnEnterClick";   public _publicSpaceData:datasheet.PublicSpaceData;   private bg:Laya.Image;   private btnEnter:Laya.Button;   constructor()   {    super();    this.initUI();   }   private...

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

163. LayaAir引擎AS3与Flash原生AS3的开发差异(ActionScript-简介篇(AS3)-LayaAir引擎简介) [ 66%]

...e.graphics.endFill(); addChild(sprite); sprite.addEventListener(MouseEvent.CLICK,onClick); function onClick(evt:MouseEvent):void { trace("------aaa---------"); } ``` **LayaAir引擎中正确的用法示例:** 实现方法一: ```java var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100...

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

164. LayaAir引擎AS3与Flash原生AS3的开发差异(ActionScript-简介篇(AS3)-LayaAir引擎简介) [ 66%]

...e.graphics.endFill(); addChild(sprite); sprite.addEventListener(MouseEvent.CLICK,onClick); function onClick(evt:MouseEvent):void { trace("------aaa---------"); } ``` **LayaAir引擎中正确的用法示例:** 实现方法一: ```java var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100...

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

165. 请问UI之间的场景切换要怎么写 [ 66%]

...r){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.mp3',0); } _proto.onWxSign = function...

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

166. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 66%]

....y = soundButton.y; Laya.stage.addChild(musicButton); soundButton.on(Event.CLICK, this, onPlaySound); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"...

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

167. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 65%]

...rol);  //点击提示文字,开始游戏 this.label_start.on(Laya.Event.CLICK, this, this.onTipClick); //this._loveControl.startGame();  //点击重置按钮,重新开始 this.button_reset.on(Laya.Event.CLICK, this, this.onClickReset);  let partPath = "res/aixin_bao.part"; Laya.loader.load(pa...

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

168. 类似抠图、挖空效果的实现 [ 65%]

...);             blue.size(500, 500);             blue.on("click", this, onClick);             Laya.stage.addChild(blue);                          //增加一个容器             box = new Sprite();             //设置容器为画布缓...

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

169. 点击区域问题 [ 65%]

...Area = new laya.maths.Rectangle(-50,-100,100,100); sp.on(laya.events.Event.CLICK,this,this.spHandler); function spHandler() {     sp.graphics.clear();     var rc:number = Math.floor(Math.random()*0xffffff);     sp.graphics.drawRect(-50,-100,100,100,"#"+rc); } 这样多包几层,点击...

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

170. 重发问题: 点击页面会导致setTimeout setInterval 延迟执行 [ 65%]

...面的方法, 一样会导致setInterval明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用; 现在...

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