setDimension(550,400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); $movie->setRate(31); // get bitmap for fill // tux bitmap from http://www.mandrakelinux.com/en/ $bitmapfilename="ic-tuxgeneric.jpg"; $fob = fopen($bitmapfilename,"rb"); $img = new SWFBitmap($fob); // draw circle shape add bitmap fill $circleshape = new SWFShape(); $myfill=$circleshape->addFill($img, SWFFILL_TILED_BITMAP); $circleshape->setRightFill($myfill); $circleshape->drawCircle(100); // add circle shape to movie and move to _x=100 _y=100 $circlesymbol=$movie->add($circleshape); $circlesymbol->moveTo(100,100); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>