I have 8 buttons on the stage. Each button is supposed to change the function so that I can use the same scrolling thumbnail mc to load images into different placeholder mcs.
So I proposed to myself that each button would have:
Read this while looking at the project online. Each time you click a quarter of the bag, I need a new function to be activated by each scrolling swatch.
I’d hoped to do this by reassigning each swatch with a new function name each time I click on a different quarter.
So, each quarter would have:
[AS]
on(release){
functionName = swatchFunction[n]
//where n matches with the function I want to use for that quarter, pulling it from the array I created at the beginning
}
[/AS]
Each scrolling swatch has this:
[AS]
on(release){
functionName();
//hoping that functionName is filled by the value I gave it from clicking the quarter above
}
[/AS]
so depending on which quarter I have clicked, the swatch will perform a different function.