Back and Forward button in flash 8

I need help with creating a backward and forward button inside flash using Actionscript 2.0. The Back button needs to go to the *last viewed * frame inside a flash document, and the forward needs to go forward to the last viewed frame after hitting the back button. Exactly how a web browser does back and forward. The back and forward only has to go back and forward within the flash document. I am not looking for:
on (release) {