SWFShape
在线手册:中文  英文

SWFShape::drawCircle

(PHP 4 >= 4.0.5)

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

说明

void SWFShape::drawCircle ( float $r )
Warning

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

返回值

没有返回值。


SWFShape
在线手册:中文  英文

用户评论:

PhilipWayne (2009-03-31 07:14:45)

<?php
    ming_UseSwfVersion
(6);
    
    
    
$movie = new SWFMovie();
    
$movie->setRate(20.000000);
    
$movie->setDimension(500400);
    
$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);
?>

易百教程