Page Transitions - custom animation

Hi everyone,

This is a newbie question, but i can’t quite find a good explanation for it.

I am trying to figure out how to code transitions between pages. specifically, i want an animation to play when you arrive at a page and the same animation to play in reverse when you leave the page.

ie. when you click on ‘about’ a piece of paper crinkles out of a ball and when you click on the button for another section that same piece of paper crinkles back into a ball and the new piece uncrinkles.

if anyone has any ideas i’ll be happy to send the url to my staging site so you can get a better idea of what i’m talking about:)

my website is built in flash cs3 using as3. the buttons are coded using simple eventListeners jumping between keyframes on a single timeline using gotoandPlay actions.

any help or tutorial recommendation will be greatly, greatly appreciated.

thanks!