Code
// SWF file generation
String export Path = "C: \ windows \ system32 \ cmd.exe ";
String swfpath = ""; // path of the flash Tool
PROCESS p = new process ();
P. startinfo. filename = shadowpath;
P. startinfo. useshellexecute = false;
P. startinfo. redirectstandardinput = true;
P. startinfo. redirectstandardoutput = true;
P. startinfo. redirectstandarderror = true;
P. startinfo. createnowindow = true;
P. Start ();
String stroutput = NULL;
P. standardinput. writeline (exepath + "" + sourcepath + "-o" + despath );
// P. standardinput. writeline (@ "C: \ flashpaper2.2 \ flashprinter.exe c: \ test document .txt-o c: \ output.swf ");
P. standardinput. writeline ("exit ");
Stroutput = P. standardoutput. readtoend ();
Console. writeline (stroutput );
P. waitforexit ();
P. Close ();
// Open SWF
Code
// Open the SWF File
<Embed id = 'swf 'src = 'C: \ output.swf 'quality = 'high' width = '000000' Height = '000000' name = 'as-js' align = 'middle' allowScriptAccess = 'alway' type = 'application/ x-Shockwave-flash 'ininspage = 'HTTP: // www.macromedia.com/go/getflashplayer'/>