# Hello and question (currentframe)

**URL:** <https://forum.kirupa.com/t/hello-and-question-currentframe/241931>\
**Category:** flash\
**Created:** [October 19, 2007, 4:03pm UTC](https://forum.kirupa.com/t/hello-and-question-currentframe/241931 "2007-10-19T16:03:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Padaxes](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@Padaxes](https://forum.kirupa.com/u/Padaxes)\
**Post date:** [October 19, 2007, 4:03pm UTC](https://forum.kirupa.com/t/hello-and-question-currentframe/241931/1 "2007-10-19T16:03:12Z")

</div>

Hi, I’ve just started out with flash/action script and have been trawling through tutorials/examples etc learning the ropes.

However the easy slide show tutorial I was using is in action script 2.0, I`m trying to adept it to work in action script 3.0 but have been unable to get the currentframe (what would have been \_root.\_currentframe) in AS2.0 I believe.

Its frustrating because im missing something obvious but can’t find how to do it anywhere!

I have a event listener on my button instance… if someone could point me in the right direction I`d appreciate it!

```auto

 
next_btn.addEventListener(
  MouseEvent.MOUSE_UP,
  function(evt:MouseEvent):void {
 
 
  cFrame = SHOULD FETCH THE CURRENT FRAME;
 
   if(cFrame == 4)
   {
    gotoAndStop(1);
 
   }
   else
   {
     nextFrame();
 
   }
  }
);

```

This all works if I manually input the frame number…

Does anyone know of a tutorial for this kind of thing in ac3.0 ?
