MovieClip.tintTo() , TextField.tintColorTo()

Availability

Flash Player 6.

Usage

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

Parameters

color A number in 0xRRGGBB format.

percent Amount from 0-100 that a movieclip or textfield's colors are tinted, like in the properties inspector.

Returns

Nothing.

Description

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

my_mc.tintTo(0xFF0000,50,2.5,"easeOutSine");