import org.osflash.zeroi.example.pack1.ZeroiExampleClass1; import org.osflash.zeroi.example.pack2.ZeroiExampleClass2; import org.osflash.zeroi.example.pack2.ZeroiExampleClass3; import org.osflash.zeroi.logging.LoggerConfig; /** * @author Soenke Rohde (mail@soenkerohde.com) */ class org.osflash.zeroi.example.ZeroiExampleMainClass { private static var instance:ZeroiExampleMainClass; public static function main(timeline:MovieClip) : Void { _root._focusrect = false; Stage.scaleMode = "noScale"; Stage.align = "TL"; ZeroiExampleMainClass.instance = new ZeroiExampleMainClass(timeline); } private var tf:TextField; public function ZeroiExampleMainClass(timeline:MovieClip) { this.tf = timeline.createTextField("tf", 0, 10, 10, 200, 100); this.tf.multiline = true; this.tf.text = "Hello World\n"; /*var mainClass:ZeroiExampleMainClass = this; LoggerConfig.init("logConfig.xml", function(success:Boolean){ mainClass.onLoggerConfig(success); });*/ this.onLoggerConfig(false); } private function onLoggerConfig(success:Boolean):Void{ trace("d " + success); this.tf.text += "LoggerConfig loaded"; var c1:ZeroiExampleClass1 = new ZeroiExampleClass1(); var c2:ZeroiExampleClass2 = new ZeroiExampleClass2(); var c3:ZeroiExampleClass3 = new ZeroiExampleClass3(); } }