# Dockmenu - jacket presentation

**URL:** https://forum.kirupa.com/t/dockmenu-jacket-presentation/215044
**Category:** design
**Created:** [February 3, 2007, 11:46am UTC](https://forum.kirupa.com/t/dockmenu-jacket-presentation/215044 "2007-02-03T11:46:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kafir](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kafir](https://forum.kirupa.com/u/kafir)
#### Post date: [February 3, 2007, 11:46am UTC](https://forum.kirupa.com/t/dockmenu-jacket-presentation/215044/1 "2007-02-03T11:46:18Z")

</div>

Hi,  
I have made a cool dockmenu presentation of different jackets. It is made in a single row but i actually need it in two rows.

Does any on know how to to this with the present code (see .swf file)

The Code for the dockmenu function is shown below.

Hope you can help me

/Kafir

align = bottom;  
centerx = Stage.width/2;  
centery = Stage.height/2;  
menuholder = createEmptyMovieClip(“menuholder”, -1);  
var image = new Array(“img13”, “img14”, “img15”, “img16”, “img8”);  
menuholder.\_y = 220; // højt tal betyder ned  
menuholder.\_x = -330; // højt tal betyder højre  
menucount = image.length;  
menuitems = [];  
miwidth = 0;  
miborder = 12;  
startx = centerx-((menucount-1)_(miwidth+miborder))/2;  
trace(startx);  
for (var i = 0; i\<menucount; i++) {  
var menuitem = menuholder.attachMovie(image_, “menu”+i, i);  
// var menuitem = menuholder.attachMovie(“menuitem”, “menu”+i, i);  
menuitem.\_x = startx+i\*(miwidth+miborder);  
menuitem.id = i;  
menuitem.onRollOver = function() {  
\_root.selected = this;  
};  
menuitems.push(menuitem);  
}  
onEnterFrame = function () { var width = 0;for (var i = 0; i\<menucount; i++) {var xxm = menuitems\*.\_xmouse;var yym = menuitems\*.\_ymouse;var xm = Math.sqrt(xxm_xxm+yym_yym);if (xm\<50) {menuitems\*.\_xscale = menuitems\*.\_yscale += ((250-xm)-menuitems\*.\_yscale)/6;} else {menuitems\*.\_xscale = menuitems\*.\_yscale += (100-menuitems\*.\_yscale)/6;}width += menuitems\*.\_width;}width += (menucount-1)_miborder;var xpos = Math.round(centerx-width/6);for (var i = 0; i\<menucount; i++) {xpos += menuitems[i-1].\_width/2+miborder+menuitems_.\_width/2;menuitems\*.\_x = xpos;}};
