I am having a similar problem i can make and fill a rectangle but as soon as i use the define bitmap function there is no data in the outputed swf]
please help
<?
swf_openfile ("php://stdout", 256, 256, 30, 100, 100, 100);
header("Content-type: application/x-shockwave-flash");
swf_definebitmap(1, 'test.jpg');
swf_startshape(2);
swf_shapefillbitmaptile(1);
swf_definerect (2, 50, 50, 100, 100,50);
swf_endshape(2);
swf_placeobject(2,10);
swf_showframe();
$data = swf_closefile (1);
echo $data
?>