Jump to content
Search Community

TweenMax : tint

Luigi Vercotti test
Moderator Tag

Recommended Posts

Hello

I am trying to do tint tweening...

TweenMax.to(grungeMC, 1, {tint:0x006600, tintAmount:.3});

or

var maskingBcg:TimelineLite = new TimelineLite();
maskingBcg.insert(new TweenLite(grungeMC,1, {tint:0x006600,tintAmount:.3}));
maskingBcg.append(new TweenLite(grungeMC,.3, {tint:null}));

it works but what I am trying or I wish to get tint at low percentage...I don't know if you understand me...something like alpha.

Link to comment
Share on other sites

the tint plugin does not have a tintAmount parameter. use colorTransform as suggested earlier. use the plugin explorer for an easy way to experiment with various settings /values.

 

 

import com.greensock.TweenLite;

import com.greensock.plugins.TweenPlugin;

import com.greensock.plugins.ColorTransformPlugin;

TweenPlugin.activate([ColorTransformPlugin]); //activation is permanent in the SWF, so this line only needs to be run once.

 

TweenLite.to(mc, 1, {colorTransform:{tint:0xFF0000, tintAmount:0.5}});

 

http://www.greensock.com/as/docs/tween/ ... lugin.html

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...