New animated buttons not working

I have designed a web catalogue and like every web site it uses buttons. Now that I am more into actionscript and design now-a-days I decided to replace the buttons with nice actionscripted buttons with a nice fade using the code:



// as for the fade in/out action. 

onClipEvent (enterFrame) {
	this.buttonid.text = "Enter Catalogue";
	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
		this.nextFrame();
	} else {
		this.prevFrame();
	}
}

// main button action

on (release) {
             gotoAndPlay(1);
}


Now my catalogue ain’t working. Why does it work with buttons and not with movieclip buttons??

Adam

try changing…



on (release) {
             gotoAndPlay(1);
}

to


on(release) {
_root.gotoAndPlay(1);
}

or what ever the path may be…

Ah haa!! Fantastic. I never would have thought of something that simple!!

Thanks very much.

Ads.