Jump to content
Search Community

Type mismatch with TweenMax.staggerTo

Tweenrookie test
Moderator Tag

Recommended Posts

Don't have a clue why i recieve a "Type mismatch" on the red line.

The tween executes 5 times, because it receives by parameter, 5 different instances. When all of them are finished, i need to run "cargarpantalla" function.

 

 

function mc(nombrecolumna){
            TweenMax.staggerTo ( nombrecolumna.target.p, 3, {colorTransform:{ tint:0xFFFFFF, tintAmount:0.2 } }, cargarpantalla );
            
            function cargarpantalla () {
            trace("hola")
            }

Link to comment
Share on other sites

the staggerTo() method expects an array as the first parameter (because it's for staggering multiple objects to the same end values). I assume that maybnombrecolumna.target.p is not an array. You can change to a regular to() call instead if you want. 

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