setDimension(550,400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); // image to add to movie $img="png.png"; // add it and move it to x:50 y:50 $png = new SWFBitmap(fopen($img,"rb")); $f1 = $movie->add($png); $f1->moveTo(50,50); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>