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

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

161. hitTestPrior点击穿透 [ 68%]

...sp.graphics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite(); spchild.graphics.drawRect(0,0,200,200,"#FF0000"); spchild.size(200,200); spchild.on(Event.CLICK,this,onClickSpChild); sp.addChild(spchild); } pr...

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

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

163. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 67%]

...el.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; panel.on("click_start_gen", this.startGen, this); } protected onShown() { (this.contentPane as IEditor.InspectorPanel).resetDefault(); this.title = "SplitAtlas"; this.setSize(450, 180); } } class SplitAtlasSetting { @IEditor.onLoad sta...

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

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

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

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

167. 请问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

168. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 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

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

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

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

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