MovieClip.colorTo()

Availability

Flash Player 6.

Usage

my_mc.colorTo(color, seconds, animtype, delay, callback, extra1, extra2)

Parameters

color A number that represents the RGB numeric value for the color (tint).

If null or undefined, it resets color mode to normal without any color transformation

Other parameters follow the tween() method.

Returns

Nothing.

Description

Following example changes tint of my_mc to red (0xFF0000) in 2.5 seconds with easeOutSine effect

my_mc.colorTo(0xFF0000,2.5,"easeOutSine");