Jump to content
Search Community

TweenMax.to inside a for loop ?

Tweenrookie test
Moderator Tag

Recommended Posts

I need to tween five movieclips that are contained in the links_menu array.

I want them to tween on onRollOver event.

i used a for loop which seems to work fine, because when i put trace (this._name) it returned the name of the movieclip i was rollingover to, so until this point, it's all fine.

 

However, when i put a TweenMax.to(this._name, 1, {anything}); nothing happens.

clues?

 

I am just begining to crawl in tweenlite as well as actionscript... sorry if this is too basic guys.

 

 

for (i=0; i<links_menu.length; i++) {
     links_menu.onRollOver = function (){
          TweenMax.to(this._name, 1, {_x:"19", _y:"-4.75"});
     }}

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