setRate(20.000000); $movie->setDimension(550, 400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); // bitmap fill tiled Eterm-blackstone.jpg from Eterm @ http://www.eterm.org/ $bgbitmap="Eterm-blackstone.jpg"; $fp = fopen($bgbitmap,"rb"); $i = fread($fp,999999); $img = new SWFBitmap($i); fclose($fp); $shapetobitmapfill=new SWFShape(); $shapetobitmapfill->setLine(1,0,0,0); $myfill=$shapetobitmapfill->addFill($img, SWFFILL_TILED_BITMAP); //$myfill=$shapetobitmapfill->addFill($img, SWFFILL_CLIPPED_BITMAP); $shapetobitmapfill->setRightFill($myfill); $shapetobitmapfill->drawLine(800,0); $shapetobitmapfill->drawLine(0,800); $shapetobitmapfill->drawLine(-800,0); $shapetobitmapfill->drawLine(0,-800); // add a second bitmap converted from png with transparency to dbl using png2dbl // original png from http://www.mandrake-linux.com // works w/o fread & fclose.... are they required?? $imgtux = new SWFBitmap(fopen("ic-tuxgeneric2.dbl","rb")); // add a third bitmap of xmms using MX actionscript $strAction = " createEmptyMovieClip('picxmms',10); picxmms._x=150; picxmms._y=100; picxmms.loadMovie('http://someplace/xmms.jpg'); "; $movie->add(new SWFAction($strAction)); // add bitmaps to movie $picbg=$movie->add($shapetobitmapfill); $picbg->moveTo(-50,-50); $pictux=$movie->add($imgtux); $pictux->moveTo(10,10); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>