# Flash8: What Frame am I on?

**URL:** <https://forum.kirupa.com/t/flash8-what-frame-am-i-on/303957>\
**Category:** flash\
**Created:** [January 29, 2010, 6:05pm UTC](https://forum.kirupa.com/t/flash8-what-frame-am-i-on/303957 "2010-01-29T18:05:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![themop](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@themop](https://forum.kirupa.com/u/themop)\
**Post date:** [January 29, 2010, 6:05pm UTC](https://forum.kirupa.com/t/flash8-what-frame-am-i-on/303957/1 "2010-01-29T18:05:48Z")

</div>

I have created a game with MC’s that are nested inside other ones so for example I have a Code:

```auto
_root.hat.gotoAndStop(2)

```

to change hat. But I also am using a save feature to save my game at stages but I want to know what kind of code I should use for the simplest way to save what frame the hat is on, when clicking the save button.

```auto
    on (release) {
    timeCheck.data.BLAM = _root.BLAM;
user.flush() 

```

^ Example Save Code^

```auto
if (_root.timeCheck.data.BLAM == undefined) {
    
    _root.BLAM = BLAM
}
else {
    _root.BLAM = timeCheck.data.BLAM;
} 

```

^ Example Load code,

Any answers would be appreciated ![](http://forum.kirupa.com/uploads/kirupa/1105/8ed432c9025fd9ca.gif) (NOTE: MY LOADING AND SAVE CODE WORKS I JUST NEED A METHOD OF SAVING FRAME NUMBERS SO THAT IT CAN BE ON THAT FRAME ON LOAD).

Thanks in advance, 🔗
