Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
nissivm

Sliding pages

Recommended Posts

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

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

I DID IT!!!!!!!!!!!

THANK YOU VERY MUCH GREENSOCK!!!!!

Link to comment
Share on other sites

good news. glad it worked.

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