SWFShape::drawCircle
(PHP 4 >= 4.0.5)
SWFShape::drawCircle — Draws a circle of radius r centered at the current location, in a counter-clockwise fashion
Описание
void SWFShape::drawCircle
( float
$r
)Внимание
К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.
Возвращаемые значения
Эта функция не возвращает значения после выполнения.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Генерация нетекстовых MIME форматов
- Ming (flash)
- Функция SWFShape::addFill() - Adds a solid fill to the shape
- Функция SWFShape::__construct() - Creates a new shape object
- Функция SWFShape::drawArc() - Draws an arc of radius r centered at the current location, from angle startAngle to angle endAngle measured clockwise from 12 o'clock
- Функция SWFShape::drawCircle() - Draws a circle of radius r centered at the current location, in a counter-clockwise fashion
- Функция SWFShape::drawCubic() - Draws a cubic bezier curve using the current position and the three given points as control points
- Функция SWFShape::drawCubicTo() - Draws a cubic bezier curve using the current position and the three given points as control points
- Функция SWFShape::drawCurve() - Draws a curve (relative)
- Функция SWFShape::drawCurveTo() - Draws a curve
- Функция SWFShape::drawGlyph() - Draws the first character in the given string into the shape using the glyph definition from the given font
- Функция SWFShape::drawLine() - Draws a line (relative)
- Функция SWFShape::drawLineTo() - Draws a line
- Функция SWFShape::movePen() - Moves the shape's pen (relative)
- Функция SWFShape::movePenTo() - Moves the shape's pen
- Функция SWFShape::setLeftFill() - Sets left rasterizing color
- Функция SWFShape::setLine() - Sets the shape's line style
- Функция SWFShape::setRightFill() - Sets right rasterizing color
Коментарии
<?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);
?>