# Importing external URLS

**URL:** <https://forum.kirupa.com/t/importing-external-urls/223921>\
**Category:** flash\
**Created:** [April 26, 2007, 7:47pm UTC](https://forum.kirupa.com/t/importing-external-urls/223921 "2007-04-26T19:47:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![metrade23](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@metrade23](https://forum.kirupa.com/u/metrade23)\
**Post date:** [April 26, 2007, 7:47pm UTC](https://forum.kirupa.com/t/importing-external-urls/223921/1 "2007-04-26T19:47:38Z")

</div>

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](http://www.google.com)”)  
}  
function sc2(){  
getURL(“[http://www.ebay.com](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](http://Google.com)”, sc1, falase, true, true);  
menu2 = new ContextMenuItem(“Go to [Ebay.com](http://Ebay.com)”, sc2, falase, true, true);  
sc\_cm.customItems.push(menu1);  
sc\_cm.customItems.push(menu2);  
this.menu = sc\_cm;  
//Context Menu//
