C

newBevelFilter(SWFColor shadowColor /* shadow color */, 
               SWFColor highlightColor /* highlight color */, 
               SWFBlur blur /* blur */, 
               SWFShadow shadow /* shadow */,
               int flags /* FILTER_MODE_INNER,  FILTER_MODE_KO, FILTER_MODE_ONTOP */)

SWFBlur newSWFBlur(float blurX /* horiz. blur amount */, 
                   float blurY /* vert. blur amount */, 
                   int passes /* number of passes. shoub be <= 3 */)

SWFShadow newSWFShadow(float angle /* angle in radians */, 
                       float distance /* distance in px*/, 
                       float strength /* strength */)

Example

SWFDisplayItem item;
SWFBlur blur;
SWFFilter f;
SWFShadow shadow;
SWFColor c1, c2;

/* ... */
blur = newSWFBlur(5,5,2);
shadow = newSWFShadow(0.79, 5, 1.0);
        
c1.red = 0;
c1.green = 0;
c1.blue = 0;
c1.alpha = 0xff;

c2.red = 0xff;
c2.green = 0xff;
c2.blue = 0xff;
c2.alpha = 0xff;
f = newBevelFilter(c1, c2, blur, shadow, FILTER_MODE_INNER | FILTER_MODE_KO);   

/* ... */

// attach filter to DisplayItem
// display item must be a MovieClip, Button or TextField instance
SWFDisplayItem_addFilter(item, f);

/* ... */

PHP

<?
/* ... */
$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);
/* .. */

?>