Controling frame move from outside movieclip

Hi everyone :slight_smile:

I have this function :

function swapstate(newpage) {
    for(var a in nav_left){
        if (nav_left[a]._name != newpage) {
        } else {

… which is supposed to be triggered from within movieclips like this :

onSelfEvent (press) {

As you can see, it’s made in order to change the look of a button when clicked and to also show a different look to the other buttons in the same movieclip container.

The problem is that gotoAndStop isn’t triggered.
I assume the syntax is wrong :frowning:

Huge thanks to the ones who will help :slight_smile: