Hi everybody,
I have 6 movieclips working as buttons (about_btn, menu_btn, drinks_btn, pics_btn, guestbook_btn and contact_btn) and they are insite another movieclip called menu_mc. I control them with this function:
function setButtons() {
for (var i in menu_mc) {
if (menu_mc*._name.substr(-4) == "_btn") {
clip = menu_mc*;
clip.onRollOver = function() {
// rollover stuff goes here
};
clip.onRollOut = function() {
// rollout stuff goes here
};
clip.onRelease = function() {
// release stuff goes here
};
}
}
}
setButtons();
I have a square on the stage that should change in height depending which button is presses. I tought it was possible to do that with an array, but i can’t figure out how. This is the array with the heights:
hoogtes = new Array():
hoogtes = ["275", "250", "240", "250", "210", "200"];
note: the order of the heights in the array correspond with the order of the buttons.
I hope somebody has the answer to my question.
Thanks in advance