php, swf and gif
| From: | Aleksander Petrov | Date: | Mon, 13 Nov 2000 08:19:59 +0000 |
| Subject: | php, swf and gif | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-24925@lists.php.net to get a copy of this message | ||
I am trying to make an interractive map and got an idea to make it with php
and flash.
But i fall in problems almost at the begining.
The picture (bitmap) i want to insert in flash does not show up.
my code:
Header("Content-type: application/x-shockwave-flash");
swf_openfile("php://stdout", 400, 300, 20, 0 , 1, 1);
f_bkg();
swf_closefile();
function f_bkg
swf_definebitmap(1000, "logo.gif");
swf_startshape(2);
swf_shapelinesolid(0.1,0.1,0.1,1,0.2);
swf_shapefillbitmapclip(1000);
swf_shapefillsolid(0.9,0,0,0.5);
swf_shapefilloff();
swf_shapemoveto(100,100);
swf_shapelineto(233,100);
swf_shapelineto(233,186);
swf_shapelineto(100,186);
swf_shapelineto(100,100);
swf_endshape(2);
swf_placeobject(2,200);
swf_showframe();
}
?>
if I put insted of drawing rect. function swf_shapearc()
something like:
Header("Content-type: application/x-shockwave-flash");
swf_openfile("php://stdout", 400, 300, 20, 0 , 1, 1);
f_bkg();
swf_closefile();
function f_bkg
swf_definebitmap(1000, "logo.gif");
swf_startshape(2);
swf_shapelinesolid(0.1,0.1,0.1,1,0.2);
swf_shapefillbitmapclip(1000);
swf_shapearc(50,50,100,0,360);
swf_endshape(2);
swf_placeobject(2,200);
swf_showframe();
}
?>
i can see bitmap!
what am i doing wrong?