| Flashscript classes (ActionScript 3) | Home | MX | MX 2004 | Flash 8 | Flash 9 |Flash 10 |PHP |Components | Snippets | Contact | |
GlowAnimationIn |
|
|
See also
| Property | Defined By |
|---|---|
|
knockOut
: Boolean
Convert to a knockout for glowing. |
GlowAnimationIn |
|
inVers
: Boolean
Convert to a inverted color for glowing. |
GlowAnimationIn |
| 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)
This function sets most parameters for glowing in. |
GlowAnimationIn |
| 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. Implementationpublic function get knockOut():Booleanpublic function set knockOut(value:Boolean):void |
|
inVers
property
inVers:Boolean [read-write] Convert to a inverted color for glowing. Implementationpublic function get inVers():Booleanpublic function set inVers(value:Boolean):void |
| Constructor Detail |
|---|
|
GlowAnimationIn () Constructor
public function GlowAnimationIn() |
| Intializes a new GlowAnimationIn instance. |
| Method Detail |
|---|
|
glowIn() method
This function sets most parameters for glowing out. |
Parameters
|
| Event Detail |
|---|
|
glowinComplete event
Event Object Type:
biz.flashscript.filters
Dispatched when glow in is completed. |
| Examples |
|---|
Create a new fla file and name it GlowAnimationOut.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 Glowanimation.as and place this script.
package
{
import flash.display.Sprite;
import flash.display.MovieClip;
import biz.flashscript.filters.GlowAnimationIn;
import biz.flashscript.filters.GlowAnimationOut;
import flash.events.Event;
public class Glowanimation extends Sprite
{
public var myClip:MovieClip;
public function Glowanimation ():void
{
var mgi:GlowAnimationIn = new GlowAnimationIn();
mgi.knockOut = true;
mgi.inVers = true;
mgi.glowIn(myClip, 50, 0xFF0000);
mgi.addEventListener("glowinComplete", compHandler);
}
private function compHandler(event:Event):void
{
var mgo:GlowAnimationOut = new GlowAnimationOut();
mgo.knockOut = true;
mgo.inVers = true;
mgo.glowOut(myClip, 50, 0xFF0000);
}
}
}
|