I am trying to write script for a button from the _root timeline for a button located in a movie clip named "navbar". I want the button to make the movie clip's timeline goto and play the frame labeled "audio". This is the code I've come up with.
_root.navbar.avbutton.onRelease = function() {
_parent.doRelease(gotoAndPlay ("audio"
);
};
However, I can't seem to get the button to work. Can someone tell me what is wrong with my code, or a different way to do this. I would rather not code the button, because I want all of my code in a central location to make it easier to revise in the future.
Thanks for any help you can give.
_root.navbar.avbutton.onRelease = function() {
_parent.doRelease(gotoAndPlay ("audio"
};
However, I can't seem to get the button to work. Can someone tell me what is wrong with my code, or a different way to do this. I would rather not code the button, because I want all of my code in a central location to make it easier to revise in the future.
Thanks for any help you can give.