1
8
9 import com.project.core.Bootstrap;
10 import com.sekati.display.BaseClip;
11 import com.sekati.log.Logger;
12 import caurina.transitions.properties.*;
13
14
21 class com.project.core.Document extends BaseClip {
22
23 public var log:Logger;
24 private var bootstrap:Bootstrap;
25
26
29 private function Document() {
30 super( );
31 init( );
32 }
33
34
39 public static function main(target:MovieClip):Void {
40 target.__proto__ = Document.prototype;
41 Function( Document ).apply( target, null );
42 }
43
44
48 private function init():Void {
49 setMovieProps( );
50 buildCompositions( );
51 }
52
53
57 private function setMovieProps():Void {
58
59 System.security.allowInsecureDomain( "*" );
60 System.security.allowDomain( "*" );
61 fscommand( "swLiveConnect", "true" );
62 fscommand( "allowscale", "false" );
63 fscommand( "showmenu", "false" );
64 fscommand( "fullscreen", "false" );
65 Stage.align = "TL";
66 Stage.scaleMode = "noScale";
67 _quality = "HIGH";
68 _focusrect = false;
69 }
70
71
75 private function buildCompositions():Void {
76 trace( "*** - Document Initialized ..." );
77 bootstrap = new Bootstrap( );
78
79 log = Logger.getInstance( );
80 log.isIDE = true;
81 log.isLC = true;
82 log.isSWF = false;
83
84
85 FilterShortcuts.init( );
86 ColorShortcuts.init( );
87 DisplayShortcuts.init( );
88 TextShortcuts.init( );
89 SoundShortcuts.init( );
90 }
91 }