# Help converting verical to horizontal format menu

**URL:** https://forum.kirupa.com/t/help-converting-verical-to-horizontal-format-menu/166275
**Category:** Uncategorized
**Created:** [October 18, 2005, 3:55pm UTC](https://forum.kirupa.com/t/help-converting-verical-to-horizontal-format-menu/166275 "2005-10-18T15:55:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oavs](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/oavs/32/1847_2.png) [@oavs](https://forum.kirupa.com/u/oavs)
#### Post date: [October 18, 2005, 3:55pm UTC](https://forum.kirupa.com/t/help-converting-verical-to-horizontal-format-menu/166275/1 "2005-10-18T15:55:45Z")

</div>

Hi  
I have this action script where I need help to change into a horizontal menu format. Can someone please help. Script was from kirupa forum and it is called ‘flashnav’ and it reads ‘images.xml’ . Its a great script but only if it couild me converted to display horizontally.

Thanks in advance

MovieClip.prototype.easeY = function(y){  
this.onEnterFrame = function(){  
this.\_y = y-(y-this.\_y)/1.2;  
if(Math.abs(y-this.\_y) \<= 1){  
delete this.onEnterFrame;  
this.\_y = y;  
}  
}  
}

images = new Array();  
xml\_file = “images.xml”;

xml = new XML();  
xml.ignoreWhite = true;  
xml.onLoad = function(ok){  
if(ok){  
count = this.firstChild.childNodes.length;  
for(var i=0;i\<count;i++){  
curNode = this.firstChild.childNodes\*;  
images\* = {path:curNode.firstChild.firstChild.nodeValue}  
}  
boot();  
} else {  
trace(“Could not load “+xml\_file+”.”);  
}  
}  
xml.load(xml\_file);

// ------------------------------------------------------------

spacing = 5;  
boot = function(){  
for(var i=0;i\<images.length;i++){  
mc = container.attachMovie(“thumbMC”,“thumb”+i,i);  
loader = mc.loader;  
aux = mc.aux;  
mc.\_y = i\*(55+spacing);  
mc.loader.loadMovie(images\*.path);  
mc.aux.onEnterFrame = function(){  
if(this.\_parent.loader.\_width \> 0){  
delete this.onEnterFrame;  
this.\_parent.onRelease = function(){

```
            }
        }
    }
}
setRollOver();

```

}  
setRollOver = function(){  
this.onEnterFrame = function(){  
if(this.mask.hitTest(\_root.\_xmouse,\_root.\_ymouse)){  
slideMenu();  
}  
}  
}  
slideMenu = function(){  
diffspacing = 20;  
diff = this.\_parent.\_ymouse - (this.\_y+diffspacing);  
scale = diff_100/(this.mask.\_height-2_diffspacing); // once to compensate, another to add  
scale = Math.max(0,Math.min(100,scale)); // confine within 0-\>100  
target = -scale\*(this.container.\_height-this.mask.\_height)/100;  
this.container.easeY(target);  
}
