[swfmill] stdin & stdout

Killingbeck, Steve killins at Jostens.com
Thu May 10 10:11:11 EDT 2007


Hi Ralf,

I am trying to use swfmill with a c# .net 2.0 batch engine I wrote...

And run it inside of a thread... I think I figured it now... the idea is
I just pass a new dynamic xml string to the stdin and it kicks out files
from one process till I am done looping thousands of times... 

Here is what I have so far, I got it to work (this is inside of a
thread)
I am still having trouble with stdout though... I think it's a c# / .net
issue now... I just have to figure the right way to work with stdout... 
It would be nice if there were some stdin/stdout examples with various
languages, I have searched the web... not much out there :(


<code>
Process swfmill = new Process();
                
                
                swfmill.StartInfo.FileName = "C:\\Documents and
Settings\\killins\\Desktop\\downloads\\swfmill\\swfmill-0.2.12-win32\\sw
fmill.exe";
                

                swfmill.StartInfo.Arguments = "-v simple stdin "+
DateTime.Now.TimeOfDay.Ticks + ".swf";
                swfmill.StartInfo.UseShellExecute = false;
                swfmill.StartInfo.CreateNoWindow = true;
                swfmill.StartInfo.WindowStyle =
ProcessWindowStyle.Hidden;
                swfmill.StartInfo.RedirectStandardInput = true;
                

                swfmill.Start();

                string xmlString = "<?xml version=\"1.0\"
encoding=\"iso-8859-1\" ?><movie width=\"320\" height=\"240\"
framerate=\"12\"><background color=\"#ff0000\"/><frame/></movie> ";
                swfmill.StandardInput.WriteLine(xmlString);
                swfmill.StandardInput.Flush();
                swfmill.StandardInput.Close();

</code>



-----Original Message-----
From: swfmill-bounces at osflash.org [mailto:swfmill-bounces at osflash.org]
On Behalf Of Ralf Fuest
Sent: Wednesday, May 09, 2007 4:10 PM
To: swfmill at osflash.org
Subject: Re: [swfmill] stdin & stdout

Hello Steve,
i just tried using stdin and stdout mode and it works.

Whats your problem with it? Does it show any errors?

Ralf

> Has anyone used the stdin and stdout mode successfully?
> 
>  
> 
> Such as:
> 
>  
> 
> Swfmill simple stdin stdout
> 
>  
> 
> Thanks!!!



_______________________________________________
swfmill mailing list
swfmill at osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org





More information about the swfmill mailing list