How would I achieve this result? ActionScript 3
Dear Forum members:
How would I go about achieving the following result?
I have a Movie Clip that is in my Flash library. It is essentially a button. There is a switch which enables the functionality that when the button is switched to an active loading state, a user can load a sound from a Flash window or from the file system (depending on how I design it). The switch gets turned off so that the sound stays locked to that button. The trick is that there are many buttons (let's say 16 to celebrate the Microsoft Surface 2 Music Kit).
I can manually create 16 event listeners but that seems like wasted code lines. Is there an automated way of adding a custom event listener to each of the 16 buttons that would load a different sound? Need help in methodology here. Thanks in advance, markerline
