Glow

Package:
Class:
Inheritance:
biz.flashscript.filters
public class Glow
N/A
The Glow class allows glowing of an object. To trigger that use the constructor new Glow().
Public Methods
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

  • myTarget:Object ____ The glow target.
  • glowColor:uint=0xFF0000 ____ Optional: glow color. Default is red.
  • blx:int=25 ____ Optional: specifies x direction glowing. Default is 25;
  • bly:int=25 ____ Optional: specifies the y direction glowing. Default is 25.
  • alfa:Number ____ Optional: specifies the alpha value of the glow. Default is 1.
Examples
Create a new fla file and name it GlowExample.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 GlowExample.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 GlowExample extends Sprite
	{
		public var myClip:MovieClip;
		public function GlowExample ():void
		{
			var myGlow:Glow = new Glow(myClip);
		}
	}
}