Share Posted June 28, 2013 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 More sharing options...
Share Posted June 28, 2013 try for (i=0; i<links_menu.length; i++) { links_menu[i].onRollOver = function (){ TweenMax.to(this, 1, {_x:"19", _y:"-4.75"}); }} Link to comment Share on other sites More sharing options...
Author Share Posted June 28, 2013 Yes! I see... i was referring to the name, not the movieclip itself. Thanks again Carl. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now