Jump to content
Search Community

TweenMax not recognizing target movie clip

merrill test
Moderator Tag

Recommended Posts

I am new to as2 and TweenMax and can't get the tween to work when using an array element as part of the target:

 

//pic1 is the movie clip

pics = new Array(1, 2, 3, 4, 5, 6);

p=0;

TweenMax.to("pic" +pics[p],1.5,{_alpha:100, ease:Sine.easeInOut});

 

In reading through the posts, I have come across several references to "relative vs absolute" string values, but only within the context of how to use variables with properties (numbers). I have tried the following as well with no luck:

 

TweenMax.to("pic" +pics[p].toString(),1.5,{_alpha:100, ease:Sine.easeInOut});

 

Please advise,

Merrill

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