# Mac OS X menu dock

**URL:** <https://forum.kirupa.com/t/mac-os-x-menu-dock/180815>\
**Category:** flash\
**Created:** [March 3, 2006, 4:48pm UTC](https://forum.kirupa.com/t/mac-os-x-menu-dock/180815 "2006-03-03T16:48:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krlosandres](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@krlosandres](https://forum.kirupa.com/u/krlosandres)\
**Post date:** [March 3, 2006, 4:48pm UTC](https://forum.kirupa.com/t/mac-os-x-menu-dock/180815/1 "2006-03-03T16:48:13Z")

</div>

Hello I found this one menu that simulates dock of OSX, somebody can help me to personalize the icons please?

```auto
[LIST=1]
[*]align = bottom;
[*]centerx = Stage.width/2;
[*]centery = Stage.height/2;
[*]menuholder = createEmptyMovieClip("menuholder", -1);
[*]menuholder._x = centerx;
[*]menucount = 5;
[*]menuitems = [];
[*]miheight = 50;
[*]miborder = 1;
[*]starty = centery-((menucount-1)*(miheight+miborder))/2;
[*]for (var i = 0; i<menucount; i++) {
[*] var menuitem = menuholder.attachMovie("menuitem", "menu"+i, i);
[*] menuitem._y = starty+i*(miheight+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 += ((200-xm)-menuitems*._yscale)/3;
[*] }
[*] else {
[*] menuitems*._xscale = menuitems*._yscale += (100-menuitems*._yscale)/3;
[*] }
[*] width += menuitems*._width;
[*] }
[*] width += (menucount-1)*miborder;
[*] var ypos = Math.round(centery-height/2);
[*] for (var i = 0; i<menucount; i++) {
[*] ypos += menuitems[i-1]._height/2+miborder+menuitems*._height/2;menuitems*._y = ypos;
[*] }
[*]};

```

[/LIST]
