dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SWFShape::drawCubic> <SWFShape::drawArc
[edit] Last updated: Fri, 28 Jun 2013

view this page in

SWFShape::drawCircle

(PHP 4 >= 4.0.5)

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

Description

void SWFShape::drawCircle ( float $r )
Warning

This function is currently not documented; only its argument list is available.

Return Values

No value is returned.



add a note add a note User Contributed Notes SWFShape::drawCircle - [1 notes]
up
1
PhilipWayne
4 years ago
<?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);
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites