macuzzin Posted November 4, 2009 Share Posted November 4, 2009 Hi I need to rollover an object which makes another invisible object become visible using an alpha tween. When I rollout the latter becomes invisible again. I am using Tweenlite for AS2. Can someone please point me to a good tutorial for this or send me the script. I'm new at this and don't understand the overwrite property too well. Many Thanks Link to comment Share on other sites More sharing options...
GreenSock Posted November 4, 2009 Share Posted November 4, 2009 Something like: import com.greensock.*; mc1.onRollOver = function():Void { TweenLite.to(mc2, 1, {_alpha:0}); } mc1.onRollOut = function():Void { TweenLite.to(mc2, 1, {_alpha:100}); } You may have to do _parent.mc2 instead of just mc2 (can't remember - it's been so long since I worked with AS2 like this, but I know the scope of the function calls will be mc1) Hope that helps. 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