| Flashscript classes (ActionScript 3) | Home | MX | MX 2004 | Flash 8 | Flash 9 |Flash 10 |PHP |Components | Snippets | Contact | |
Glow |
|
|
| Method | Defined By |
|---|---|
| Glow(myTarget:Object, glowColor:uint=0xFF0000, blx:int=25, bly:int=25, alfa:Number=1) | Glow |
| Constructor Detail |
|---|
|
Glow () Constructor
public function Glow(myTarget:Object, glowColor:uint=0xFF0000, blx:int=25, bly:int=25, alfa:Number=1) |
| Intializes a new Glow instance with the specified parameters. |
Parameters
|
| Examples |
|---|
Create a new fla file and name it Glows.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 Glows.as and place this script. You should see the MovieClip glowing in a red color.
package
{
import flash.display.Sprite;
import flash.display.MovieClip;
import biz.flashscript.filters.Glow;
public class Glows extends Sprite
{
public var myClip:MovieClip;
public function Glows ():void
{
var myGlow:Glow = new Glow(myClip);
}
}
}
|