setDimension(200,200); $movie->setBackground(0xcc,0xcc,0xcc); // THE FRAME RATE BELOW IS IMPORTANT. THE FLASH APP ASSUMES 10FPS // FOR ALL IT'S TIME CONVERSIONS. $movie->setRate(20); // move along a frame $movie->nextFrame(); // open the mp3 file $snd = fopen($mp3file, "rb"); // add the mp3 to the movie $movie->streamMp3($snd); // close the mp3 file fclose($snd); // set movie total number of frames (song length x frame rate) $movie->setFrames(($songlength*20)); // total song // write out swf movie to file (Not for symbios. This is also VERY slow.) //$outfile="streammp3.swf"; //$movie->save($outfile); // now output the swf data directly header('Content-type: application/x-shockwave-flash'); $movie->output(9); ?>