我是 actionscript3 的新手,我的代码有问题,我指的是为多设备、多分辨率世界设计,我坚持初始化八哥。语法很好,但是当我通过 ctrl+enter 测试我的项目时发现错误。这是我的代码
this.stage.align = StageAlign.TOP_LEFT;
this.stage.scaleMode = StageScaleMode.NO_SCALE;
import feathers.system.DeviceCapabilities;
DeviceCapabilities.dpi = 265;
DeviceCapabilities.screenPixelWidth = 480;
DeviceCapabilities.screenPixelHeight = 800;
import starling.core.Starling;
import flash.events.Event;
var starling:Starling;
this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoComplete);
function loaderInfoComplete(e:Event):void
{
starling=new Starling(Main, this.stage);
starling.start();
}