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

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

1. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 100%]

...1-10 0 1 分享 微博 QZONE 微信 oy2419498011 赞同来自: var shouye=(function(){ (function shouye(){ Laya.init(100,300); this.bgimg=new BackGround(); Laya.stage.addChild(this.bgimg); })(); return shouye; })(); var BackGround = (function (_super) { function BackGround() { BackGround.super(thi...

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

2. 分包后, 资源加载问题 [ 99%]

...der加载后, 再加载B.js,这样才合理。 具体代码: private function onAssetLoaded():void { //trace("加载结束"); //实例化类 Example,并添加到舞台显示 Laya.loader.load("js/loading100.js", Handler.create(this, complete), null, Loader.TEXT); } private function complete(d...

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

3. 跟着老师打地鼠游戏写的代码,JS为什么会出错 [ 99%]

跟着老师打地鼠游戏写的代码,JS为什么会出错 var Game=(function(_super){ function Game(){ Game.super(this); this.mole=new Mole() //这里会报错 } Laya.class(Game,"Game",_super); return Game; })(ui.GameUI) var GameUI=(function(_super){ function GameUI(){ this.btn_start=null; thi...

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

4. 1.5.0 LayaAir IDE发布UI资源缺失! [ 99%]

....static; var View=laya.ui.View; var Dialog=laya.ui.Dialog; var ABCPanelUI=(function(_super){         function ABCPanelUI(){                          ABCPanelUI.__super.call(this);         }         CLASS$(ABCPanelUI,'ui.abc.ABCPanelUI',_super);         var _...

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

5. 有关继承类的问题 [ 99%]

有关继承类的问题 //建筑类 var Building = (function (_super){ function Building(params) { Building.super(this); } Laya.class(Building,"Building",_super); return Building; })(Laya.Sprite)   //床 var Bed = (function (_super){ function Bed(params) { Bed.super(this); } Laya.class(Bed,"Bed",...

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

6. Uncaught TypeError: Game.super is not a function [ 97%]

Uncaught TypeError: Game.super is not a function var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

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

请问UI之间的场景切换要怎么写 var sg_sign = (function(_super){ 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.SoundMan...

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

8. 续飞机大战 [ 97%]

...的理解 你的项目修改如下即可正常运行 Game.js var Game = (function(){ function Game(){ // 初始化引擎,设置了游戏的宽高 Laya.init(480,852); Laya.stage.bgColor="#EEFFCC"; var bg = new BackGround(); Laya.stage.addChild(bg); } return Game; }()); var gameInstance = new Game()...

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

9. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 96%]

...ate */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():void{ super.initialize(); _proMask = new Sprite(); _proMask.graphics.drawRect(0, 0, _progress.width, _progress.height); _pro...

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

10. ts编译为js后 [ 96%]

ts编译为js后 var AudioCommand = (function(_super) { function AudioCommand() { AudioCommand.__super.call(this); } __class(AudioCommand, 'model.resource.audio.controller.AudioCommand', _super); 1.AudioCommand.__super.call(this); 2.__class(AudioCommand, 'model.resource.audio.controller.AudioComman...

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