# Suddenly can't get gotoAndStop to work!

**URL:** <https://forum.kirupa.com/t/suddenly-cant-get-gotoandstop-to-work/258807>\
**Category:** flash\
**Created:** [April 28, 2008, 3:05pm UTC](https://forum.kirupa.com/t/suddenly-cant-get-gotoandstop-to-work/258807 "2008-04-28T15:05:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joakimlinden](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@joakimlinden](https://forum.kirupa.com/u/joakimlinden)\
**Post date:** [April 28, 2008, 3:05pm UTC](https://forum.kirupa.com/t/suddenly-cant-get-gotoandstop-to-work/258807/1 "2008-04-28T15:05:11Z")

</div>

I’m working on a project with a lot more advanced features than simple gotoAndStop functions, but this one has me thinking…

I’ve created clickable menu items. When clicking one of them, they call a movieclip with 11 frames, and tells the playhead to jump to one of those frames. Simple as can be, right.

However, nothing happens visually when I click the menu items - but when tracing out “currentframe”, I get the frame I expect to be at.

```auto
_root.main.menuItem.onRelease = function () {
        _root.main.mapview.gotoAndStop(2);
        // trace returns correct framenumber (2) but nothing happens visually
        trace(_root.main.mapview._currentframe);
}

```

When debugging, I notice that the mapview movieclip has some mysterious clips called “instance1”, “instance2”, “instance3” up to 6 that have been generated by flash (or something else).

Also, when debugging, the console reports the correct value for “\_currentframe” - but the flash movie shows frame 1 no matter what

Is this making any sense? I can’t seem to solve it…
