Jump to content
Search Community

Is this a bug? (using RemoveTint)

Rabies test
Moderator Tag

Recommended Posts

I am having a problem with RemoveTint. This code here works... doing what I expect, but note how I had to use "TweenMax" in that last function. If I put TweenLite there, it won't remove the tint. Is this a bug?

 

 

import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;

TweenPlugin.activate([TintPlugin]);

function setUp(){
ELEVATOR._visible = false;	
ELEVATOR._alpha = 0;	
TweenLite.to(ELEVATOR, 0.1, {_visible:1, tint:0x000000, onComplete:startElevator});	
}

function startElevator(){
TweenLite.to(ELEVATOR, 2, {_alpha:100, _visible:1, tint:0xff0000, onComplete:animateElevator});
}
function animateElevator(){
TweenMax.to(ELEVATOR, 1, {removeTint:true});
}
setUp();

stop();

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...