I’ve attached some dynamic text to a mc that is masked (layer) on the main timeline. They still act as buttons but are now invisble?
function loadMenu() {
for (var i = 0; i<myCategories.length; i++) {
_root.navMask.maskedNav.attachMovie("nav", "nav"+i, i);
_root.navMask.maskedNav["nav"+i].categoryVar = myCategories*;
_root.navMask.maskedNav["nav"+i]._y = 21*i;
trace(myCategories*);
_root.navMask.maskedNav["nav"+i].hit = i;
_root.navMask.maskedNav["nav"+i].onRollOver = function() {
var chosenColor = new Color(this);
chosenColor.setRGB(0xffffff);
};
_root.navMask.maskedNav["nav"+i].onRollOut = function() {
var chosenColor = new Color(this);
if (this.hit == _root.menuChosen) {
chosenColor.setRGB(0xffffff);
} else {
chosenColor.setRGB(0x847E71);
}
};
}
}
Just getting back into flash after a 1 year break so this maybe really obvious.