setDimension(550,400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); $movie->setRate(31); $strAction = " createTextField('output',50,50,50,250,250); // xml myXML = new XML(); myXML.onLoad=handleLoad; myXML.load('xmldoc.xml'); function handleLoad (success) { if (success) { output.text= this; }else{ output.text='fail'; } // format text field myformat = new TextFormat(); myformat.color = 0xff0000; myformat.font = 'Arial'; myformat.size = 24; with (output){ multiline = true; wordWrap = true; border = true; setTextFormat(myformat); } } "; $movie->add(new SWFAction( $strAction)); // used param #2 which is zlib compression for // flash player version 6 and up which // changes swf size from 488 bytes to 329 bytes //// has greater effect on larger more as based movies. // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>