Looping

I have a movie clip which consists of four frames, with an onmousedown function applied to the movie so that on each click it goes to the next frame. How would I then apply a loop so that after reaching the final frame, the next click will take you back to frame 1 and so on??
(sorry, I’m new at flash)

cheers
naomi

try this :):

mymovieclip.onMouseDown = function() {
(this._currentframe == this._totalframes) ? : this.gotoAndStop(1) : this.nextFrame()
}