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

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

41. 新手,图片加载不进去,没有报错。很疑问 [ 82%]

...相关的链接 提交 1 个回复 Laya_XS 赞同来自: var BackGround=(function(_super){ function BackGround(){ BackGround.__super.call(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("comp/bg.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; ...

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

42. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 82%]

...ew=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene {         public scoreLbl:Laya.Label;         public tipLbll:Laya.Label; constructor(){ super()} createC...

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

43. 新手学js做开发,写了一个按钮,点击没有反应 [ 81%]

...JS语法相关的书籍   完整的结构如下所示: var LoginView = (function(_super){     function LoginView(){         LoginView.super(this);     }     Laya.class(LoginView,"LoginView",_super);     return LoginView; })(ui.LoginUI);   2018-01-30 0 0 分享 微博 QZONE 微...

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

44. 关于js继承类class的参数问题 [ 81%]

...接 提交 1 个回复 w1114367261 赞同来自:  * @example      * (function (_super){      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new l...

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

45. List选中项下滚会变 [ 81%]

...如下:(语言javascript,引擎1.7.8beta)   var ServerListView = (function(_super){ function ServerListView(){ ServerListView.super(this); this.selectedIndex = -1; var data = ; //设置服务器列表项信息 for(var i=0;i<100;i++){ data = {select:{label:"服务器"+(i+1),selected:false...

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

46. 想用js写一个什么也不继承的类,但每次实例化这个类的时候会报错,是不是这个类写得不对呀 [ 81%]

...这个类的时候会报错,是不是这个类写得不对呀 var Test = (function(_super){ function Test(){         Test.super(this);         console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_proto. retur...

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

47. 关于环形进度条,进度不能重置问题 [ 81%]

... 提交 2 个回复 cuixueying 赞同来自: gls_laybox var IndexView = (function(_super){ this.angle; this.draw; this.box; this.circle; function IndexView(){ IndexView.super(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.bo...

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

48. LAYA的AS3项目碰见个问题,求解 [ 80%]

...t;   mytexts.as: public class myTexts extends myTextsUI        public function myTexts()         {             super();         }         override protected function initialize():void         {             super.initialize();         }        ...

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

49. 微信飞机大战报错 [ 80%]

...eAddChunk (_stream_readable.js:[...]   GameInfo.js代码: var GameInfo = (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo...

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

50. 看一下这是什么问题,运行报错 [ 80%]

看一下这是什么问题,运行报错 var MPanel1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下   附件 : --> 2018-02-06 添加评论 免费...

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