# Remember which frame was from

**URL:** <https://forum.kirupa.com/t/remember-which-frame-was-from/316828>\
**Category:** flash\
**Created:** [December 3, 2010, 12:29pm UTC](https://forum.kirupa.com/t/remember-which-frame-was-from/316828 "2010-12-03T12:29:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohya](https://avatars.discourse-cdn.com/v4/letter/o/fbc32d/32.png) [@ohya](https://forum.kirupa.com/u/ohya)\
**Post date:** [December 3, 2010, 12:29pm UTC](https://forum.kirupa.com/t/remember-which-frame-was-from/316828/1 "2010-12-03T12:29:44Z")

</div>

I want to let the button remember the previous frame where I was from：

For example ,  
btn.onPress = function (){go to the previous frame I was from}

Please complete the sentence for me.
