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