# Change loadURL to loadMovie?

**URL:** https://forum.kirupa.com/t/change-loadurl-to-loadmovie/58011
**Category:** Uncategorized
**Created:** [July 19, 2004, 1:23am UTC](https://forum.kirupa.com/t/change-loadurl-to-loadmovie/58011 "2004-07-19T01:23:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ash\_ravi](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@ash\_ravi](https://forum.kirupa.com/u/ash_ravi)
#### Post date: [July 19, 2004, 1:23am UTC](https://forum.kirupa.com/t/change-loadurl-to-loadmovie/58011/1 "2004-07-19T01:23:19Z")

</div>

I found this menu in the forum…can somebody help me in changing the scripts getURL to loadMovie.  
I m done with all my swf’s …i m so close and this is giving me lemons!!!:crazy:

colortitle = 0x999999;  
colorsubtitle = 0xF7F7F7;  
texttitle = new TextFormat();  
texttitle.color = 0xFFFFFF;  
textsubtitle = new TextFormat();  
textsubtitle.color = 0x575757;  
titles = [“COMPANY”, “SERVICES”, “PATRONS”,“PARTNERS”,“HOME”,“CONTACT US”];  
subtitles = [[“Mission”, “Vision”, “Goals”, “TSI Team”, “Awards”], [“Telecomm”, “Wireless”, “Security”, “Consulting”, “Web”]];  
URL\_subtitles = [[“mission.swf”, “Test2.html”], 0, [“Test3.html”, “Test4.html”, “Test5.html”], [“Test6.html”]];  
positionor = [100, 121];  
//The position of the menu  
distance = 25;  
//The distance between the menu-items  
offset = 10;  
//Horizontal offset between the titles and subtitles  
createtitlebars();  
// ---------------------  
function createtitlebars() {  
for (i=0; i\<titles.length; i++) {  
this.attachMovie(“bar”, “bar”+i, i);  
mc = eval(“bar”+i);  
mc.\_x = \_root.positionor[0];  
mc.test.text = titles\*;  
mc.test.setTextFormat(texttitle);  
myColoredObject = new Color(mc.bg);  
myColoredObject.setRGB(colortitle);  
mc.old\_pos = i\*\_root.distance+\_root.positionor[1];  
mc.onEnterFrame = function() {  
new\_pos = (Number(this.\_name.substr(-1))\<=\_root.selected) ? this.old\_pos : this.old\_pos+\_root.subtitles[\_root.selected].length\*\_root.distance;  
this.\_y += (new\_pos-this.\_y)/3;  
};  
mc.onRelease = function() {  
num = Number(this.\_name.substr(-1));  
//specify the actions for the titles like this  
if (num == 1) { //0 is the first button, 1 the second,…  
//getURL(“URLforsecondtitle.html”, “\_blank”);  
container.loadMovie(“mission.swf”)  
}  
if (pressed) {  
if (\_root.selected == num) {  
\_root.selected = titles.length;  
pressed = false;  
} else {  
\_root.selected = num;  
\_root.createsubtitlebars(num);  
}  
} else {  
\_root.createsubtitlebars(num);  
pressed = true;  
\_root.selected = num;  
}  
};  
}  
}  
function createsubtitlebars(num) {  
for (i=0; i\<\_root.subtitles[num].length; i++) {  
\_root.attachMovie(“bar”, num+“subbar”+i, i-100);  
mc = eval(num+“subbar”+i);  
mc.\_y = \_root[“bar”+num].\_y;  
// y-position from where it has to fly in  
//you can change this to a number like 200  
mc.\_x = \_root.positionor[0]+\_root.offset;  
// x-position from where it has to fly in  
//you can change this to a number like 200  
mc.test.text = subtitles[num]_;  
mc.test.setTextFormat(textsubtitle);  
myColoredObject = new Color(mc.bg);  
myColoredObject.setRGB(colorsubtitle);  
mc.old\_pos = \_root.distance_(i+num+1)+\_root.positionor[1];  
mc.num = num;  
mc.onEnterFrame = function() {  
new\_alpha = (this.num != \_root.selected) ? 0 : 100;  
this.\_alpha += (new\_alpha-this.\_alpha)/3;  
this.\_y += (this.old\_pos-this.\_y)/3;  
this.\_x += (\_root.positionor[0]+\_root.offset-this.\_x)/3;  
};  
mc.onPress = function() {  
\_root.gotoAndStop(\_root.URL\_subtitles[this.num][Number(this.\_name.substr(-1))], “\_blank”);  
};  
}  
}
