Beispiel #1
0
 static void SwfToXml(string[] args)
 {
     if (args.Length < 2)
     {
         Console.WriteLine("Source file wasn't specified");
         ShowUsage();
         return;
     }
     if (args.Length < 3)
     {
         Console.WriteLine("target file wasn't specified");
         ShowUsage();
         return;
     }
     using (var file = File.Open(args[1], FileMode.Open, FileAccess.Read)) {
         var swf    = SwfFile.ReadFrom(file);
         var facade = new SwfMillFacade();
         var doc    = facade.ConvertToXml(swf);
         doc.Save(args[2]);
     }
 }
Beispiel #2
0
 static void SwfToXml(string[] args)
 {
     if (args.Length < 2) {
         Console.WriteLine("Source file wasn't specified");
         ShowUsage();
         return;
     }
     if (args.Length < 3) {
         Console.WriteLine("target file wasn't specified");
         ShowUsage();
         return;
     }
     using (var file = File.Open(args[1], FileMode.Open, FileAccess.Read)) {
         var swf = SwfFile.ReadFrom(file);
         var facade = new SwfMillFacade();
         var doc = facade.ConvertToXml(swf);
         doc.Save(args[2]);
     }
 }