©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
(PHP 5 <= 5.3.0, PECL ming SVN)
SWFShape::__construct — Creates a new shape object
此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。
Created a new SWFShape object.
This simple example will draw a big red elliptic quadrant.
Example #1 swfshape() example
<?php
$s = 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 );
$m -> setRate ( 12.0 );
$m -> add ( $s );
$m -> nextFrame ();
header ( 'Content-type: application/x-shockwave-flash' );
$m -> output ();
?>