MovieClip.invertColorTo() , TextField.invertColorTo()

Availability

Flash Player 6.

Usage

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

Parameters

percent A number that represents the percentage amount (from 0-100) that a movieclip or textfield's colors are inverted

Returns

Nothing.

Description

Method, inverts the colors of a movieclip or textfield to create a photo-negative effect

Following example inverts the colors of my_mc by 100% in 2 seconds with easeOutSine effect

my_mc.invertColorTo(100,2,"easeOutSine");