# Problem, FrameLabel and Reverse

**URL:** https://forum.kirupa.com/t/problem-framelabel-and-reverse/189645
**Category:** Uncategorized
**Created:** [June 4, 2006, 11:00pm UTC](https://forum.kirupa.com/t/problem-framelabel-and-reverse/189645 "2006-06-04T23:00:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sepu](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@sepu](https://forum.kirupa.com/u/sepu)
#### Post date: [June 4, 2006, 11:00pm UTC](https://forum.kirupa.com/t/problem-framelabel-and-reverse/189645/1 "2006-06-04T23:00:56Z")

</div>

Hey guys … Im having a problem with this and is driving me kinda crazy …

anyways here is what I’ve done so far … I got my mainMenu … with animations … I got 4 buttons (MC) that each of them go to a certain frame label so for example I got M1 (M1 is a frameLabel) that goes to (about) M2 that goes to (Portoflio) and so on, each of these is a different Movie Clip with their own animation inside … so when the animation of this MC (About, FrameLabel “M1”)for example is done it loads the external SWF, inside of this MC I got the same 4 buttons of the main time line. so when I press the HOME Btn the movie goes back (in reverse). The thing that I cant do is come back to the \_root. (main time line) and go to a certain Frame label in this case “f1” when the animation in reverse is done.  
here is the code that I got in the first frame of the movieclip.

[LEFT]

```auto
function goBackwards (){
    this.onEnterFrame = function() {
        if (_currentframe <= _totalframes) {
            prevFrame();
        } else if (_currentframe == 1) {
            _root.gotoAndStop("f1");// this isnt working I dont know why it dosent want to go to the root and that frame label. 
            delete this.onEnterFrame;
        }
    };
};

```

[/LEFT]

and the code for the button is (this code is in the last frame of the animation)

```auto

     [LEFT] home.onRelease = function () { 
     unloadMovieNum(2); 
     goBackwards(); 
 };[/LEFT]
   

```

so its working, the thing is that it doenst go to the Frame label that I want … it just Stop in frame 1. anyhelp would be appreciate.

by the way Im using Flash 8

thanks
