# Play animation on Exit before Next page Loads

**URL:** https://forum.kirupa.com/t/play-animation-on-exit-before-next-page-loads/14871
**Category:** flash
**Created:** [March 3, 2003, 9:10pm UTC](https://forum.kirupa.com/t/play-animation-on-exit-before-next-page-loads/14871 "2003-03-03T21:10:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![powder](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@powder](https://forum.kirupa.com/u/powder)
#### Post date: [March 3, 2003, 9:10pm UTC](https://forum.kirupa.com/t/play-animation-on-exit-before-next-page-loads/14871/1 "2003-03-03T21:10:56Z")

</div>

Hello, I have posted this question a few times on other boards and I can still not get this to work.

Here is what I want.

It is pretty simple to make a flash site that when you click a button graphics fly around all this fancy stuff happens etc…BUT When you click another button the page you currently are on just dissapears and then the next page loads and does all its fancy stuff again.

So what I am wondering is what is a simple way of having for example this:

HOME page fades in  
User clicks ANY BUTTON  
HOME page fades out  
then whatever page Clicked FADES in

\*\*Obviously this would be the same for any page you are viewing. And I am using fade in/out as a simple example.

This would be very easy to do if I knew the viewer would press the buttons in a certain order but like that will happen. Also I have no problem doing this with a few pages by just putting everything linear on the timeline. But things start to get crazy when I have alot of pages.

Is there an action that I could apply to my buttons that perform the task of “When user clicks X button, Play exit animation of the page you are currently on before loading page that the user clicked”??

Any help would be greatly appreciated I have been trying to find an easy way to do this for quite some time…

PS sorry about the long post…

see ya

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 3, 2003, 9:22pm UTC](https://forum.kirupa.com/t/play-animation-on-exit-before-next-page-loads/14871/2 "2003-03-03T21:22:53Z")

</div>

**callbacks**

check the **tricks of the trade** thread in the best of kirupa section

or run a search for **transitions** in the flash mx and actionscript sections 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 12:22am UTC](https://forum.kirupa.com/t/play-animation-on-exit-before-next-page-loads/14871/3 "2003-03-04T00:22:03Z")

</div>

Thanx so much for pointing me in the right direction…I found exactly what I needed…🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 12:30am UTC](https://forum.kirupa.com/t/play-animation-on-exit-before-next-page-loads/14871/4 "2003-03-04T00:30:52Z")

</div>

glad you could find it =)
