Here’s the code that handles my button functions:
nav_hc.onRollOver = function() {
_root.rollWws();
};
nav_hc.onRollOut = function(){
_root.rollOutWws();
_root.button02.active = true;
}
nav_hc.onPress = function(){
_root.releaseWws(“gallery”);
_root.loader.loadClip(_root.newSec, _root.m_blank);
_root.xmlSection = 1;
};
I need to duplicate that code for about 10 different buttons, with the only thing changing being the xmlSection variable. Is there a way to condense this code without simply duplicating it 10 times? A loop of some sort? Thanks