GlowAnimationIn

Package:
Class:
Inheritance:
biz.flashscript.filters
public class GlowAnimationIn
EventDispatcher
The GlowAnimationIn class allows animated glow. Use the constructor new GlowAnimationIn().

See also

   biz.flashscript.filters.GlowAnimationOut

   biz.flashscript.filters.Glow

Public Properties
Property Defined By
knockOut : Boolean
Convert to a knockout for glowing.
GlowAnimationIn
inVers : Boolean
Convert to a inverted color for glowing.
GlowAnimationIn
Public Methods
Method Defined By
GlowAnimationIn()
Creates a new instance of the GlowAnimationIn class.
GlowAnimationIn
glowIn(_rect:Object, _duration:int, _glowColor:uint=0xFFFF10, _glowX:int=30, _glowY:int=30):void
This function sets most parameters for glowing in.
GlowAnimationIn
Events
Event Defined By

glowinComplete

Dispatched when glow in is completed.

GlowAnimationIn
Property Detail
knockOut property
knockOut:Boolean [read-write]

Convert to a knockout for glowing.

Implementation

public function get knockOut():Boolean
public function set knockOut(value:Boolean):void
inVers property
inVers:Boolean [read-write]

Convert to a inverted color for glowing.

Implementation

public function get inVers():Boolean
public function set inVers(value:Boolean):void
Constructor Detail
GlowAnimationIn ()  Constructor
public function GlowAnimationIn()
Intializes a new GlowAnimationIn instance.
Method Detail

glowIn()  method
public function glowIn(_rect:Object, _duration:int, _glowColor:uint=0xFFFF10, _glowX:int=30, _glowY:int=30):void

This function sets most parameters for glowing out.

Parameters

  • _rect:Object ____ Specifies the object to glow.
  • _duration:int ____ specifies the duration of glowing in.
  • _glowColor:uint=0xFFFF10 ____ specifies the glow color. Default is 0xFFFF10.
  • _glowX:int=30 ____ specifies the blur in x direction. Default is 30.
  • _glowY:int=30 ____ specifies the blur in y direction. Default is 30.
Event Detail

glowinComplete event

Event Object Type: biz.flashscript.filters
Event.type property = biz.flashscript.filters.GlowAnimationIn.GLOWIN_COMPLETE

Dispatched when glow in is completed.

Examples
Create a new fla file and name it GlowAnimationin.fla. Place the fla in the same folder as the biz folder. Put a MovieClip (myClip) on the stage. Then create an Actionscript file, name it Glowanimationin.as and place this script.
package 
{
	import flash.display.Sprite;
	import flash.display.MovieClip;
	import biz.flashscript.filters.GlowAnimationIn;
	import fl.controls.Button;
	import flash.events.MouseEvent;

	public class Glowanimationin extends Sprite
	{
		public var startBut:Button;
		public var myClip:MovieClip;
		
		public function Glowanimationin ():void
		{
			startBut.label = "START";
			startBut.addEventListener(MouseEvent.CLICK, startAnimation);
		}
		private function startAnimation (event:MouseEvent):void
		{
			var mgi:GlowAnimationIn = new GlowAnimationIn();
			mgi.knockOut = true;
			//mgi.inVers = true;
			mgi.glowIn(myClip,75, 0xFF0000);
		}
	}
}