Can anyone help with the following … I have several animated movies (counties in Ireland actually) that when clicked animated up in size and display some information. I then have a button to the left that I would like use to animate the movie back to its original size i.e. close it. Thing is that I would like to pass the name of the current movieclip to the button and use it in a function. I had thought of using a switch statement but id need 26 of them for this function alone. Solving this would reduce my code a lot. My attempt is as follows:
mc_goBack.onRelease = function(currentCounty):Void {
this.currentCounty.gotoAndPlay(10);
};
Needless to say this hasn’t worked - I’m guessing Actionscript is looking for a movie called currentCounty and not swapping in the correct MovieClip.
Any help would be appreciated!