Was looking at a few posts that had some similar ideas but none of them seem to be exactly what I want/need for this program.

Basically I am creating a simple simulator program to use at work. What I have right now is 5 frames each with different images of a cell phone. What I want to do is create a back button that doesn't just take you back to the previous frame..it takes you back to the previous frame you were on..that way when I am hitting the back button I am not having to go through three other frames I don't need to see..I am going back to the last two that I were on. I hope this makes sense and if not I can provide further details upon request.

I am working in actionscript 3, I used the code snippet provided by going to previous frames but again that isn't exactly what I want. If I am on frame 1 and go to frame 5 and then hit the previous button it takes me through frames 4 3 and 2 when I just want to hit the back button to go back to frame 1..