Hi guys,
I need a little help.
My Main Class:
package {
// Flash Classes
import flash.display.MovieClip;
import flash.events.Event;
import core.InitStage;
public class Main extends MovieClip {
private var projectSetupStageFullscreen:Boolean = true;
public var mainBg:MovieClip = new MovieClip();
private var initStage:InitStage;
public function Main() {
initStage = new InitStage(this);
}
}
}
and here’s the InitStage Class:
package core {
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
public class InitStage extends MovieClip {
private var stageRef:MovieClip;
public function InitStage (stageReference:MovieClip):void {
stageRef = stageReference;
if (stageRef.projectSetupStageFullscreen) {
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
}
}
}
}
In result I receive:
ReferenceError: Error #1069: Property projectSetupStageFullscreen not found on Main and there is no default value.
at core::InitStage()
at Main()
Can anybody help me figure out how to properly reference the projectSetupStageFill var from the InitStage class please?
Thx!