# Transition Effects Question

**URL:** https://forum.kirupa.com/t/transition-effects-question/274593
**Category:** flash
**Created:** [October 31, 2008, 8:11pm UTC](https://forum.kirupa.com/t/transition-effects-question/274593 "2008-10-31T20:11:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![skelebunny](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@skelebunny](https://forum.kirupa.com/u/skelebunny)
#### Post date: [October 31, 2008, 8:11pm UTC](https://forum.kirupa.com/t/transition-effects-question/274593/1 "2008-10-31T20:11:13Z")

</div>

I’m trying to figure out how to trigger my Transition effects when I click on a button to go to another section of my site. I’ve read up on how to create the Transition Class, I know how to create one, just not sure how to make it work with my buttons. I’m a newbie, any help is appreciated.

This is the horribly wrong code I have:

[AS]  
import fl.transitions.easing._;  
import fl.transitions._;

var myTransition:TransitionManager = new TransitionManager(trans\_mc);  
myTransition({type:PixelDissolve, direction:Transition.OUT, duration:2, easing:Strong.easeIn});

button1\_mc.addEventListener(MouseEvent.CLICK, startTrans);

function startTrans(e:MouseEvent):void  
{  
myTransition.startTransition();  
gotoAndPlay(10);  
}  
[/AS]
