FMX2004-probably really simple?! next frame action

HELP!

Ok well i got this from one of the tut’s on here, basically it allows me to move over a little animation of a button and then rollout and it dissapears as easy as it came in. Its great, it works but i am having trouble making it move onto the next frame; heres the source code;

//stop();

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

this.onRelease = function(){
nextFrame();
}

****** Basically i need this button to simply move onto the next frame in the movie. Please find attached the .fla

dean
www.digitalboxes.co.uk

this.onRelease = function(){
this._parent.nextFrame();
}

or

this.onRelease = function(){
_root.nextFrame();
}

should do

Thankyou Canada!!

That worked a treat! :}