setDimension(550,400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); $movie->setRate(31); $strAction = " // load ioDebug _root.createEmptyMovieClip('ioDebug', 8888); _root.ioDebug.loadMovie('ioDebugANDioLib.swf'); _root.ioDebug._x=_root.ioDebug._y=100; // make some object to debug live myObj = {}; myObj.prop1=0; myObj.prop2=0; // change the myObj values _root.onEnterFrame = function(){myObj.prop1++;myObj.prop2--; }; "; $movie->add(new SWFAction($strAction)); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>