Is there a simpler way of writing this?
function nav(num) {
gotoAndStop(num);
}
my_btn1.onRelease = function() {
nav(1);
}
my_btn2.onRelease = function() {
nav(2);
}
my_btn3.onRelease = function() {
nav(3);
}
my_btn4.onRelease = function() {
nav(4);
}
stop();