|
SWFShape::addFillAdds a solid fill to the shape Description
SWFFill SWFShape::addFill
( int
$red
, int $green
, int $blue
[, int $alpha = 255
] )
SWFFill addFill
( SWFBitmap
$bitmap
[, int $flags
] )
SWFFill addFill
( SWFGradient
$gradient
[, int $flags
] )Warning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. SWFShape::addFill adds a solid fill to the shape's list of fill styles. SWFShape::addFill accepts three different types of arguments.
The
The SWFShape::addFill returns an SWFFill object for use with the SWFShape::setLeftFill and SWFShape::setRightFill functions described below. ExamplesThis simple example will draw a frame on a bitmap. Ah, here's another buglet in the flash player- it doesn't seem to care about the second shape's bitmap's transformation in a morph. According to spec, the bitmap should stretch along with the shape in this example.. Example #1 SWFShape::addFill example
<?php See Also
|