ColorFX

Inherits from:none (ColorFX is a root class)
  • Version: 1.0
  • Author: Brendan Dawes from original code by Robert Penner
  • Classpath: com.dragslidefade.ColorFX
  • File last modified: Monday, 06 February 2006, 15:47:04
Color Effects Class

Summary

Constructor

Constructor

ColorFX

function ColorFX (
$target:MovieClip)
Parameters:
$target:
the instance name of the MovieClip you want to effect the color of
Example:
var c:ColorFX = new ColorFX(mc_name);
c.tint(100,50,20,100);

Instance methods

reset

function reset (
)
Reset the color

setBrightness

function setBrightness (
amount:Number)
Sets the brightness
Parameters:
amount:
0 - 100

setBrightOffset

function setBrightOffset (
amount:Number)
Pushes the brightness around
Parameters:
amount:
-255 - 255

tint

function tint (
r:Number, g:Number, b:Number, amount:Number)
Tints a MovieClip using RGB and amount
Parameters:
r :
the red value 0 - 255
g :
the green value 0 - 255
b :
the blue value 0 - 255
amount:
between 0 - 100