# Simple question

**URL:** <https://forum.kirupa.com/t/simple-question/168439>\
**Category:** Uncategorized\
**Created:** [November 7, 2005, 9:34am UTC](https://forum.kirupa.com/t/simple-question/168439 "2005-11-07T09:34:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Puska](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Puska](https://forum.kirupa.com/u/Puska)\
**Post date:** [November 7, 2005, 9:34am UTC](https://forum.kirupa.com/t/simple-question/168439/1 "2005-11-07T09:34:41Z")

</div>

Hi

I have 3 layers in my scene.  
Layer 1 contains several keyframes and each keyframe contains text.  
Layer 2 contains 1 keyframe and navigation buttons.  
Layer 3 contains 1 keyframe and background.

My navigation button has simple code.  
on (press)  
{  
\_root.gotoAndPlay(x+1);  
}  
where x should be layer 1’s current frame.

My problem is that I don’t know how to get layer 1’s current frame number to variable x.

Could someone help me with this?
