Share Posted October 19, 2008 I am bringing in some text using XML and when i click a button i want the container to fade out and then fade back in automatically, was wondering whether there was a transform function for this or whether it would just be two lines of code? thanks Dan Link to comment Share on other sites More sharing options...
Share Posted October 19, 2008 I don't follow your question. Are you asking how to fade out and then back in using TweenLite/TweenMax? Are you asking if TransformManager has a built-in function for fading out and fading in over time? Link to comment Share on other sites More sharing options...
Author Share Posted October 20, 2008 sorry i feel i may have put this in the wrong section. basically you can use tweenLite to: TweenLite.to(mc, 1, {alpha:0}); followed by TweenLite.to(mc, 1, {alpha:1, overwrite:false}); in order to fade in and then out of alpha, i was just wondering whether there was a set "autoAlpha" which faded to a set amount i.e. 0, 0.2, etc and then back to 1 automatically. sorry for the confusion Dan Link to comment Share on other sites More sharing options...
Share Posted October 20, 2008 Nope, sorry Dan, but there isn't something that fades to one value and then another automatically. You'll have to use 2 lines of code (the horror!) Link to comment Share on other sites More sharing options...
Author Share Posted October 20, 2008 haha its no problem, was just wondering is all, thanks for your reply Dan 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