Skip to content

Instantly share code, notes, and snippets.

@barbuza
Created January 25, 2010 22:32
Show Gist options
  • Save barbuza/286340 to your computer and use it in GitHub Desktop.
Save barbuza/286340 to your computer and use it in GitHub Desktop.
package {
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import mx.logging.Log;
import mx.logging.LogEventLevel;
import org.casalib.display.CasaMovieClip;
public class Main extends CasaMovieClip {
public function Main() {
this.configureLogging();
this.configureStage();
}
private function configureStage():void {
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.align = StageAlign.TOP_LEFT;
}
private function configureLogging():void {
var SosTarget:SosLoggingTarget = new SosLoggingTarget();
SosTarget.level = LogEventLevel.ALL;
SosTarget.includeDate = true;
SosTarget.includeLevel = true;
SosTarget.includeTime = true;
SosTarget.includeCategory = true;
Log.addTarget(SosTarget);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment