Button code from AS2 to AS3

Hi

I am trying to create buttons that either gotoAndPlay(2); or gotoAndPlay(“Scene2”, 2); - I have done this perfectly well in AS2 but I am having trouble doing this in AS3.

This is the code I have so far but it doesn’t seem to do anything (tae is the instance name of my movie clip):

function buttonClicked(e:MouseEvent) {
e.currentTarget.gotoAndPlay(2);
}

tae.addEventListener(MouseEvent.CLICK, buttonClicked); 

It didn’t even work when I tried a trace:

function buttonClicked(e:MouseEvent) {
trace("button has been clicked"); 
}

tae.addEventListener(MouseEvent.CLICK, buttonClicked); 

I would really appreciate some help on this as I have been attempting it all weekend and nothing works.