JavaScript Editor Javascript debugger     Website design 


Creates a new shape object ()

SWFShape {
  SWFShape __construct();

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

Created a new SWFShape object.


This simple example will draw a big red elliptic quadrant.

Example 1346. swfshape() example

= new SWFShape();
$s->setLine(40, 0x7f, 0, 0);
$s->setRightFill($s->addFill(0xff, 0, 0));
$s->movePenTo(200, 200);
$s->drawLineTo(6200, 200);
$s->drawLineTo(6200, 4600);
$s->drawCurveTo(200, 4600, 200, 200);

$m = new SWFMovie();
$m->setDimension(6400, 4800);

header('Content-type: application/x-shockwave-flash');