hej groeft ville nok lave det med movieclips istedet:
menu_array = new Array("menupunkt1", "menupunkt2", "menupunkt3", "menupunkt4", "menupunkt5", "menupunkt6", "menupunkt7");
menu_load = new Array("
www.runeg.com", "
www.runeg.com", "
www.runeg.com", "
www.runeg.com", "
www.runeg.com", "
www.runeg.com", "
www.runeg.com");
for (var i = 0; i<menu_array.length; i++) {
duplicateMovieClip("b1_mc", ["newb"+i+"_mc"], i);
this["newb"+i+"_mc"].id = i;
this["newb"+i+"_mc"]._y = b1_mc._y+(30*i);
this["newb"+i+"_mc"].textHolder.text = menu_array[i];
this["newb"+i+"_mc"].onRollOver = this["newb"+i+"_mc"].onDragOver=function () {
this.gotoAndStop("over");
};
this["newb"+i+"_mc"].onRollOut = this["newb"+i+"_mc"].onDragOut=function () {
if (pressedItem == this.id) {
this.gotoAndStop("down");
} else {
this.gotoAndStop("start");
}
};
this["newb"+i+"_mc"].onRelease = function() {
this.gotoAndStop("down");
pressedItem = this.id;
reset();
load(menu_load[this.id]);
};
}
b1_mc._visible = 0;
function reset() {
for (var j = 0; j<menu_array.length; j++) {
this["newb"+j+"_mc"];
if (pressedItem != this.id) {
this["newb"+j+"_mc"].gotoAndStop("start");
}
}
}
function load(loadUrl) {
getURL("
http://"+loadUrl, "_blank");
}
har lavet en supegrim menu men den virker og den er meget nem for dig at rette i:
http://www.runeg.com/eksperten/groeft/med venlig hilsen
http://www.runeg.com