# On(unload) problem

**URL:** https://forum.kirupa.com/t/on-unload-problem/125659
**Category:** Uncategorized
**Created:** [October 15, 2004, 10:35pm UTC](https://forum.kirupa.com/t/on-unload-problem/125659 "2004-10-15T22:35:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thewaldron](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@thewaldron](https://forum.kirupa.com/u/thewaldron)
#### Post date: [October 15, 2004, 10:35pm UTC](https://forum.kirupa.com/t/on-unload-problem/125659/1 "2004-10-15T22:35:08Z")

</div>

hi,  
i can’t seem to get the on(unload) movieclip function to work, when i leave the frame a movie clip is in i want it to perform a fade out, is there an on(exitframe) command, or something, this is what i’ve tried:

onClipEvent (unload) {  
this.gotoAndPlay (2);  
}  
//where frame 2 is the fade out animation of that clip.

any help would be great!

thanks
