|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » site_pageranks() » imagecreatefrompng() » htmlentities() » imagepng() » imagestring() » imagedestroy() » preg_match() » imagecolorallocate() » header() » fopen() » getimagesize() » session_start() » strstr() » preg_match_all() » strpos() » ob_start() » ob_flush() » flush() » str_replace() » array2vars() » nl2br() » htmlspecialchars() » setcookie() » urlencode() » preg_split() » ereg() » ereg_replace() » var_dump() Our Sponsors » Powerpointing » Rock Music Community - meet fans » Business Strategy Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m.
Local search Connecticut furniture stores can be found at FurnitureCatch:
Furniture Stores Norwalk,
Furniture Stores Stamford,
Furniture Stores Greenwich,
Furniture Stores New Canaan,
Furniture Stores Darien
|
PHP Functions
Function: SWFGradient (PHP 4 >= 4.0.5) SWFGradient -- Creates a gradient objectDescriptionSWFGradient swfgradient ( void )Warning This function is EXPERIMENTAL . The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk. swfgradient() creates a new SWFGradient object. After you've added the entries to your gradient, you can use the gradient in a shape fill with the swfshape->addfill() method. SWFGradient has the following methods : swfgradient->addentry() . This simple example will draw a big black-to-white gradient as background, and a reddish disc in its center. Example 1. swfgradient() example
<?php
$m = new SWFMovie();
$m->setDimension(320, 240);
$s = new SWFShape();
// first gradient- black to white
$g = new SWFGradient();
$g->addEntry(0.0, 0, 0, 0);
$g->addEntry(1.0, 0xff, 0xff, 0xff);
$f = $s->addFill($g, SWFFILL_LINEAR_GRADIENT);
$f->scaleTo(0.01);
$f->moveTo(160, 120);
$s->setRightFill($f);
$s->drawLine(320, 0);
$s->drawLine(0, 240);
$s->drawLine(-320, 0);
$s->drawLine(0, -240);
$m->add($s);
$s = new SWFShape();
// second gradient- radial gradient from red to transparent
$g = new SWFGradient();
$g->addEntry(0.0, 0xff, 0, 0, 0xff);
$g->addEntry(1.0, 0xff, 0, 0, 0);
$f = $s->addFill($g, SWFFILL_RADIAL_GRADIENT);
$f->scaleTo(0.005);
$f->moveTo(160, 120);
$s->setRightFill($f);
$s->drawLine(320, 0);
$s->drawLine(0, 240);
$s->drawLine(-320, 0);
$s->drawLine(0, -240);
$m->add($s);
header('Content-type: application/x-shockwave-flash');
$m->output();
?>
|