php教程

SWFShape::drawCircle

(PHP 5 < 5.3.0, PECL ming SVN)

SWFShape::drawCircleDraws a circle of radius r centered at the current location, in a counter-clockwise fashion

说明

SWFShape::drawCircle ( float $r ) : void
Warning

本函数还未编写文档,仅有参数列表。

返回值

没有返回值。

User Contributed Notes

PhilipWayne 31-Mar-2009 07:14
<?php
    ming_UseSwfVersion
(6);
   
   
   
$movie = new SWFMovie();
   
$movie->setRate(20.000000);
   
$movie->setDimension(500, 400);
   
$movie->setBackground(0xcc,0xcc,0xcc);
   
   
$circle = new SWFShape();
   
$circle->setRightFill(00,66,00);
   
$circle->drawCircle(40);
   
$sprite = new SWFSprite;
   
$sprite->add($circle);
   
$sprite->nextFrame();
   
   
$displayitem = $movie->add($sprite);
   
$displayitem->setName("Circle");
   
$displayitem->moveTo(100,100);
   
   
   
$movie->add(new SWFAction("Circle.onPress=function(){ this.startDrag('');};
    Circle.onRelease=Circle.onReleaseOuside=function(){stopDrag();};"
));
   
   
   
header("Content-Type: application/x-shockwave-flash");
   
$movie->output(1);
?>

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788