[LayaAirIDE 1.0]报错,这不是个构造函数 "StartPage is not 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,375);
Laya.stage.bgColor = "#ffcccc";
Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS);
})()
function onLoaded(){
var StartPage = new StartPage();
Laya.stage.addChild(StartPage);
var GamePage = new GamePage();
Laya.stage.addChild(GamePage);
}
})();

已邀请:

Aar0n

赞同来自:

参照2d示例学习引擎用法,直接贴这个不是2.0的用法,也不知道你要表达什么。

要回复问题请先

商务合作
商务合作