
[CODE]// Setting the xml reference and starting the menu
a.descriptions=["ABOUT","PORTFOLIO","HISTORY","NEWS","CONTACT","BL OG"];
a.references=["1", "2", "3","direcciónweb", "direcciónweb", "some keyframe"];
a.targets=["","","","_blank","_blank",""];
a.startClip();
// This is the function that is executed when a button is pressed. The variable 'ref' and 'tgt'
// in this function will be set to the values that you've used in the XML file or arrays.
// You can add the right actions simply by having an if statement checking the values
this.goRef=function(ref,tgt){
trace("ref= "+ref);
if(ref=="1"){
trace("some movieclip go to frame 1");
}
if(ref=="2"){
trace("some movieclip go to frame 1");
}
if(ref=="3"){
trace("some movieclip go to frame 1");
}
if(ref=="direccióneb"){
trace("opening an URL");
getURL(ref,tgt);
}
if(ref=="some keyframe"){
trace("some movieclip go to some keyframe");
}
}