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

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

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

官方的示例贴上来,怎么没反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(...

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

22. Dialog 关闭效果无效 [ 86%]

Dialog 关闭效果无效 代码如下: var CommonDlg = (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCl...

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

23. http无响应 [ 85%]

...应呢? 单独用在其它文件也是没有反应,  var LoginView = (function (_super) { function LoginView() { LoginView.super(this); //调用父类构造函数 this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Even...

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

24. 关于3d项目中component的问题 [ 85%]

...始移动 这是为什么呢? 以下是我的代码,请大家指正!(function () { var convertTranslate = new Laya.Vector3(0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { ...

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

25. 报错,这不是个构造函数 "StartPage is not a constructor" [ 85%]

... a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,3...

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

26. event自定义事件的问题 [ 84%]

...ayaSample extends Sprite{ public static var event:String = "event"; public function LayaSample() { super(); //初始化引擎 Laya.init(1136, 640); var re:Revent = new Revent(); var de:DisEvent = new DisEvent(); } } } Revent类: package { import laya.display.Sprite; public class Revent extends Spr...

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

27. 感觉实例之间是关联的,求指教。(已解决) [ 84%]

...赐教。   这是场景代码/* * 用户扑克界面; */ var Panel1 = (function (_super) { function Panel1() { Panel1.super(this); //this.poke_a.x=0; } Laya.class(Panel1, "Panel1", _super); var _proto = Panel1.prototype; //======================================= //将指定的牌显示到桌面上...

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

28. 有关ui的问题 [ 84%]

...接 提交 1 个回复 明天当男神 赞同来自: var TestScene = (function (_super) {     function TestScene() {         TestScene.super(this);     }     Laya.class(TestScene,"TestScene",_super);       return TestScene; }(ui.TestViewUI));   1.1创建好ui后,导出,再自己...

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

29. 模仿教程里的打地鼠写的代码,运行报错 [ 84%]

...,运行报错 在LayaUISample.js里面是这样写的 var LayaSample = (function(){ (function(){ //初始化引擎 Laya.init(800,600); //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATL...

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

30. CameraMoveScript.as在哪儿下载群里的有错 [ 83%]

CameraMoveScript.as在哪儿下载群里的有错 public function CameraMoveScript() { } override public function _initialize(owner:Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OU...

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