Transition Effects Question

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]