| Flashscript classes (ActionScript 3) | Home | MX | MX 2004 | Flash 8 | Flash 9 |Flash 10 |PHP |Components | Snippets | Contact | |
DropShadow |
|
|
| Method | Defined By |
|---|---|
| DropShadow(myTarget:Object, myDistance:int=10, myAngle:int=45, myColor:uint=0x000000, myAlpha:Number=1, _blurX:int=8, _blurY:int=8, _strength:Number=0.65, _inner:Boolean=false, _knockout:Boolean=false):void | DropShadow |
| Constructor Detail |
|---|
|
DropShadow () Constructor
public function DropShadow(myTarget:Object, myDistance:int=10, myAngle:int=45, myColor:uint=0x000000, myAlpha:Number=1, _blurX:int=8, _blurY:int=8, _strength:Number=0.65, _inner:Boolean=false, _knockout:Boolean=false) |
| Intializes a new DropShadow instance with the specified parameters. |
Parameters
|
| Examples |
|---|
Create a new fla file and name it Dropshadow.fla. Place the fla in the same folder as the biz folder. Add a MovieClip on the stage and name it
myClip. Then create an Actionscript file, name it Dropshadow.as and place this script.
package
{
import flash.display.Sprite;
import flash.display.MovieClip;
import biz.flashscript.filters.DropShadow;
public class Dropshadow extends Sprite
{
public var myClip:MovieClip;
public function Dropshadow ():void
{
var myShadow:DropShadow = new DropShadow(myClip);
}
}
}
|