Got a list of MCs being populated from an XML file. Basically a list of two different types of information. Some are type A, some are type B.
Want to have a couple buttons that filter based on type (so if I push the button for type A (called “typeAbtn” below), only those MCs appear and type B MCs go to _alpha = 0 or something).
Can’t seem to come up with a function to do it. I can’t figure out how to reference all my MCs from outside the first function correctly.
terrible attempt:
function showMCs() {
for (var j = 0; j<stuff.length; j++) {
MC = timeline_mc["MC"+j];
MC.type = xml.blahblah.attribute.type;
...
typeAbtn.onPress = function() {
if ( MC.type == "B" ) {
MC[?].alpha = 0;
}
}