Hi everyone,
Before I dig deeper in this project I am doing, I am wondering if someone could help me be efficient. I have a list of names that show up from a teacher’s class. As each name gets added, a corresponding MC (the same) will be added… The whole thing is to take attendance. The movie clip associated with each name has seven buttons in it (Yes, No, Full credit, Half credit, no Credit, add a point, subtract a point). The buttons add or subtract, or list yes or no in a dynamic text box inside that clip. It will be adding whatever value is in the text box to a column in a sqlite db to keep track of attendance( either by points or by yes or no).
If I have lets say 20 kids in a class, that will be 20 cloned movie clips each with seven buttons, that will be a lot of event listeners on stage at one time. Plus, the others that are already present. My question is…
Is there a way to have all those movie clips without all the event listeners to slow things down but still have function. Or does it not matter? Is there a way to not give the button an event listener, but maybe say, If event.target.full credit was selected, then do something?
Thank you for the help!
Josh