Esempio n. 1
0
        public SwfCompiler(SwfCompilerOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            _options = options;
        }
Esempio n. 2
0
 public static void Compile(IAssembly assembly, Stream output, SwfCompilerOptions options)
 {
     if (options == null)
     {
         options = new SwfCompilerOptions();
     }
     using (var compiler = new SwfCompiler(options))
     {
         compiler.Build(assembly);
         compiler.Save(output);
     }
 }
Esempio n. 3
0
 public static void Compile(IAssembly assembly, string path, SwfCompilerOptions options)
 {
     if (options == null)
     {
         options = new SwfCompilerOptions();
     }
     options.OutputPath = path;
     using (var compiler = new SwfCompiler(options))
     {
         compiler.Build(assembly);
         compiler.Save(path);
     }
 }