©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PHP 5 <= 5.3.0, PECL ming SVN)
SWFShape::drawCircle — Draws a circle of radius r centered at the current location, in a counter-clockwise fashion
$r
)本函数还未编写文档,仅有参数列表。
没有返回值。
[#1] PhilipWayne [2009-03-31 07:14:45]
<?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);
?>