setRate(6); $movie->setDimension(550, 400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); ## mp3 file info include ('STARTUP.php'); $dur=11; $mp3name="startup310q0.mp3"; $mp3path= "./"; $str = str_replace("\n", "", $str); $tmp=explode(";",$str); ## as pt 1 $strAction.=" numofbars=8; createEmptyMovieClip('bar', 1); with(bar){ beginFill(255, 90); moveTo(0, 0); lineTo(0, -100); lineTo(40, -100); lineTo(40, 0); lineTo(0, 0); endFill(); _x=-500; _y=-500; } i=0; while(iadd(new SWFAction($strAction)); $movie->nextframe(); ## add mp3 & data to movie $snd = fopen($mp3path . $mp3name , "rb"); $len=$movie->streamMp3($snd); fclose($snd); for($i=0;$i<$len;$i++){ $tmp2=explode(",",$tmp[$i]); $strAction2=""; for($j=0;$jadd(new SWFAction($strAction2)); $movie->nextframe(); } $movie->nextframe(); $movie->setFrames($len+2); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?> //STARTUP.php