View Ladislav Zigo's profile on LinkedIn

 
laco.wz.cz
Web



MovieClip.contrastTo()

Availability

Flash Player 6.

Usage

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

Parameters

percent A number that represents the contrast value for the movieclip
0 : no contrast
100 : normal
100 and more : high contrast
-100 : invert colors

all other parameters do the same as in tween() method

Returns

Nothing.

Description

Change contrast of my_mc to 200 in 2 seconds with easeOutSine effect

my_mc.contrastTo(200,2,"easeOutSine");

Change contrast of my_mc to -100 (invert colors) in 1 second

my_mc.contrastTo(-100,1,"easeOutSine");


download | examples | installation | custom Easing Tool | links