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(xxmxxm+yymyym);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;}};