Hello,
I have a Custom Context Menu that I’m using on some of my flash movies and I want to pull the urls from an external XML file. Reason being, in the end I will have about 50 files and I want an easy way to alter the links just in case a path changes in the future.
Any ideas?
//Context Menu//
function sc1(){
getURL(“http://www.google.com”)
}
function sc2(){
getURL(“http://www.ebay.com”)
}
var sc_cm:ContextMenu = new ContextMenu();
sc_cm.hideBuiltInItems();
sc_cm.builtInItems.zoom = true;
menu1 = new ContextMenuItem(“Go to Google.com”, sc1, falase, true, true);
menu2 = new ContextMenuItem(“Go to Ebay.com”, sc2, falase, true, true);
sc_cm.customItems.push(menu1);
sc_cm.customItems.push(menu2);
this.menu = sc_cm;
//Context Menu//