Is there a way to make it so each Item (or Menu, such as “Home” or “News”) is linked to a different frame in the “_root” of the flash file. I apoligize for this newbish question.
There was a question about this before (search the forum for “Yugop”) but no body answered it.
This is the script that the other person had so far, but still did not woek… could someone maybe make a suggestion why this did not work…
1st layer: (in the original -> used to add the Menu Items)
stop();
// add items to menu
ymenu_mc.addItem("01", {text:"Home", color:0xFF0000});
ymenu_mc.addItem("02", {text:"Cause", color:0x00FF00});
ymenu_mc.addItem("03", {text:"Effects", color:0xFFFF00});
ymenu_mc.addItem("04", {text:"Current Relief", color:0x0000FF});
ymenu_mc.addItem("05", {text:"Important System", color:0x0000FF});
ymenu_mc.addItem("06", {text:"System Analysis", color:0x0000FF});
ymenu_mc.addItem("07", {text:"System Reappropiation", color:0x0000FF});
2nd Layer: (used to identify the Items)
for(var all in ymenu_mc){
if(ymenu_mc[all] instanceof MovieClip){
trace(all+":"+ymenu_mc[all]);
}
}
for(var all in bg_mc){
if(bg_mc[all] instanceof MovieClip){
trace(all+":"+bg_mc[all]);
}
}
for(var all in item0_mc){
if(item0_mc[all] instanceof MovieClip){
trace(all+":"+item0_mc[all]);
}
}
for(var all in updater_mc){
if(updater_mc[all] instanceof MovieClip){
trace(all+":"+updater_mc[all]);
}
}
for(var all in textanim_mc){
if(textanim_mc[all] instanceof MovieClip){
trace(all+":"+textanim_mc[all]);
}
}
for(var all in ymenuitem_mc){
if(ymenuitem_mc[all] instanceof MovieClip){
trace(all+":"+ymenuitem_mc[all]);
}
}
3rd Layer: (to load a Movie)
ymenu_mc.item0_mc.onRelease = function() {
this.sidemenu.unloadMovie();
this.mainpage.unloadMovie();
this.sidemenu.loadMovie("menu 001.swf");
}