# Game Help (Final part): URGENT!

**URL:** <https://forum.kirupa.com/t/game-help-final-part-urgent/289303>\
**Category:** flash\
**Created:** [May 28, 2009, 6:46pm UTC](https://forum.kirupa.com/t/game-help-final-part-urgent/289303 "2009-05-28T18:46:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drakob](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@Drakob](https://forum.kirupa.com/u/Drakob)\
**Post date:** [May 28, 2009, 6:46pm UTC](https://forum.kirupa.com/t/game-help-final-part-urgent/289303/1 "2009-05-28T18:46:47Z")

</div>

Hey Guys!  
Got a problem with the timeline / currentFrame at the moment.

Im calling a function to change frames when a player gets to a certain part of the frame, which works fine for changing from frame 1 to frame 2… but when he gets to frame 2, it kinda “forgets” what frame the player is on!

Code:

Document Class (important bits):

```auto

public function playGame(event:MouseEvent):void {
            
            gotoAndStop(1, "Scene 2");
            
            var link:Link = new Link(stage);
            
        }
}
public static function get instance():Zelda_Main { 
            return _instance; 
        }
}

```

External Class (Important bits):

```auto

public function frameTest() {
            
            if(link.currentFrame == 1) {                
                if(link.x >= 750) {
                    //traceDisplayList(swfStage);
                    //var main:Object = Zelda_Main;
                    //trace(main.frameChanger(1));
                    Zelda_Main.instance.frameChanger(2);
                }
            }
*PART ABOVE WORKS FINE!!!*
*BELOW: NOT WORKING!*
           if(link.currentFrame == 2) {
                trace("HELLO");
            }

```

Thanks guys.🔗
