Hello and question (currentframe)

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!


 
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 ?