nissivm Posted February 5, 2011 Share Posted February 5, 2011 hi, does someone know what do i do to make a .swf enter sliding from right to left or from top to bottom when a click a button (or, my speciffically, when i click a movie clip that has a addEventListener)? Thanks for the atention Link to comment Share on other sites More sharing options...
Carl Posted February 5, 2011 Share Posted February 5, 2011 hi, take a look at the interactive demo - tweening basics on this page http://www.greensock.com/tweenlite/ it will provide the code that you need for your eventListener. TweenLite.to(mc, 1, {x:0}); the code above will move a displayObject called mc to an x position of 0 from where ever it is. in your case start with your swf off to the right. It will really help you to read the getting started page http://www.greensock.com/get-started-tweening/ first and experiment with the greensock code before trying to solve a specific propblem. Link to comment Share on other sites More sharing options...
nissivm Posted February 5, 2011 Author Share Posted February 5, 2011 I DID IT!!!!!!!!!!! THANK YOU VERY MUCH GREENSOCK!!!!! Link to comment Share on other sites More sharing options...
Carl Posted February 6, 2011 Share Posted February 6, 2011 good news. glad it worked. 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