I am aware you can have a code like
myButton.onRelease = function (){
gotoAndPlay(2);
movieHolder.loadMovie("movie.swf");
}
My question is how to apply more than one function to a button, but define the functions later, something like
myButton.onRelease = playing;
myButton.onRelease = loading;
function playing () {
gotoAndPlay(2);
}
function loading () {
movieHolder.loadMovie("movie.swf");
}
Is this possible, and if yes, what should be the correct code?