# Fading transitions

**URL:** <https://forum.kirupa.com/t/fading-transitions/270341>\
**Category:** Uncategorized\
**Created:** [September 9, 2008, 12:08am UTC](https://forum.kirupa.com/t/fading-transitions/270341 "2008-09-09T00:08:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaZ8Teen](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kaZ8Teen](https://forum.kirupa.com/u/kaZ8Teen)\
**Post date:** [September 9, 2008, 12:08am UTC](https://forum.kirupa.com/t/fading-transitions/270341/1 "2008-09-09T00:08:53Z")

</div>

So I need some help coding button events to transition my pages…I’m new to AS so bear with me.

The only code that I have written so far to do this is…

import flash.events.MouseEvent;  
//—Home button property change—\

homebtn.addEventListener(MouseEvent.CLICK, homeClick);  
function homeClick (event:MouseEvent): void{  
gotoAndPlay(“getjargon”);  
}

This is the code for my home button. When someone clicks it, it goes to the frame for my home movie clip. But, the transition is very abrupt. I want to fade out the end of one clip and fade in the next movie clip. I’m not really sure what to do next…I figure I gotta write something that will fade out whats currently on the stage and then move to the selected frame?

Can I write multiple functions to one mouse event?

any help appreciated thanks.
