root/test/Filter/test04.php

/* [<][>][^][v][top][bottom][index][help] */
#!/usr/bin/php -c.

<?

$m = new SWFMovie(7);
$s = new SWFShape();

$s->setLine(4, 25, 0, 0, 128);
$s->movePenTo(5, 5);
$s->drawLineTo(0, 10);

$bl = new SWFBlur(5, 5, 2);
$shadow = new SWFShadow(0.79, 5, 1.0);

$c1 = Array();
$c1["red"] = 0;
$c1['green'] = 0;
$c1['blue'] = 0;
$c1['alpha'] = 0xff;

$c2 = Array();
$c2["red"] = 0xff;
$c2['green'] = 0xff;
$c2['blue'] = 0xff;
$c2['alpha'] = 0xff;


$f = new SWFFilter(SWFFILTER_TYPE_BEVEL, $c1, $c2, $bl, $shadow, SWFFILTER_MODE_INNER | SWFFILTER_MODE_KO);


$bu = new SWFButton();
$bu->addShape($s, SWFBUTTON_UP | SWFBUTTON_HIT | SWFBUTTON_OVER | SWFBUTTON_DOWN);
$item = $m->add($bu);
$item->addFilter($f);
$m->save("test04.swf");
?>

/* [<][>][^][v][top][bottom][index][help] */