Can you make a Movie instance go to a specified frame?

I have a movie instance that has code in it that will only work on a Movie instance but I need to be able to go to a specified frame when a user clicks on it like a Button instance. How do approach this to make it all work?

[AS]
clip_mc.onRelease = function()
{
var frameNum = 5;
this.gotoAndPlay(frameNum);
};
[/AS]