Creating a history.back function in AS?

Sorry,

this might be real easy but im not thinking too straight at the momment, im rushed to get this darn site done :(. How would one create a function which remembers the previous frame and even movie the user was on (in actionscript) ?? Oh and not just _currentframe-1 :stuck_out_tongue: as the user is going to be jumping frome various frames

Its for a flash website, im essentially just trying to create the equivalent of the JavaScript history.back(-1) function…

I thought of using the watch() object and continually storing the oldVal in a var in the callback function but for some darn reason the value of oldVal is undefined!? Im up for any other solutions !