Main = function() { } Main.__name__ = ["Main"]; Main.createConnection = function() { $s.push("Main::createConnection"); var $spos = $s.length; try { var ctx = new haxe.remoting.Context(); ctx.addObject("JSMain",Main); Main.cnx = haxe.remoting.ExternalConnection.flashConnect("default","flash_player",ctx); } catch( $e9 ) { { var e = $e9; { $e = []; while($s.length >= $spos) $e.unshift($s.pop()); $s.push($e[0]); js.Lib.alert(e); haxe.Timer.delay($closure(Main,"createConnection"),100); } } } $s.pop(); } Main.main = function() { $s.push("Main::main"); var $spos = $s.length; Main.createConnection(); $s.pop(); } Main.setReady = function() { $s.push("Main::setReady"); var $spos = $s.length; Main.ready = true; Main.createConnection(); $s.pop(); } Main.getReady = function(t) { $s.push("Main::getReady"); var $spos = $s.length; { var $tmp = Main.ready; $s.pop(); return $tmp; } $s.pop(); } Main.resume = function(flashObject) { $s.push("Main::resume"); var $spos = $s.length; try { if(Main.cnx == null) { var ctx = new haxe.remoting.Context(); ctx.addObject("JSMain",Main); Main.cnx = haxe.remoting.ExternalConnection.flashConnect("default",flashObject,ctx); } { var $tmp = Main.cnx.resolve("playlist").resolve("resume").call([]); $s.pop(); return $tmp; } } catch( $e9 ) { { var err = $e9; { $e = []; while($s.length >= $spos) $e.unshift($s.pop()); $s.push($e[0]); { $s.pop(); return -1; } } } } $s.pop(); } Main.getTimeCode = function(flashObject) { $s.push("Main::getTimeCode"); var $spos = $s.length; try { if(Main.cnx == null) { Main.createConnection(); } { var $tmp = Main.cnx.resolve("playlist").resolve("getTimeCode").call([]); $s.pop(); return $tmp; } } catch( $e10 ) { { var errObject = $e10; { $e = []; while($s.length >= $spos) $e.unshift($s.pop()); $s.push($e[0]); { $s.pop(); return -1; } } } } $s.pop(); } Main.setTimeCode = function(flashObject,time) { $s.push("Main::setTimeCode"); var $spos = $s.length; try { if(Main.cnx == null) { Main.createConnection(); } { var $tmp = Main.cnx.resolve("playlist").resolve("setTimeCode").call([time]); $s.pop(); return $tmp; } } catch( $e11 ) { { var errObject = $e11; { $e = []; while($s.length >= $spos) $e.unshift($s.pop()); $s.push($e[0]); { $s.pop(); return -1; } } } } $s.pop(); } Main.pause = function(flashObject) { $s.push("Main::pause"); var $spos = $s.length; try { if(Main.cnx == null) { Main.createConnection(); } { var $tmp = Main.cnx.resolve("playlist").resolve("pause").call([]); $s.pop(); return $tmp; } } catch( $e12 ) { { var errObject = $e12; { $e = []; while($s.length >= $spos) $e.unshift($s.pop()); $s.push($e[0]); { $s.pop(); return -1; } } } } $s.pop(); } Main.stop = function(flashObject) { $s.push("Main::stop"); var $spos = $s.length; try { if(Main.cnx == null) { Main.createConnection(); } { var $tmp = Main.cnx.resolve("playlist").resolve("stop").call([]); $s.pop(); return $tmp; } } catch( $e13 ) { { var errObject = $e13; { $e = []; while($s.length >= $spos) $e.unshift($s.pop()); $s.push($e[0]); { $s.pop(); return -1; } } } } $s.pop(); } Main.prototype.__class__ = Main; $Main = function() { } $Main.__name__ = ["@Main"]; $Main.prototype.__class__ = $Main; Main.ready = false; Main.cnx = null; $Main.init = Main.main();