# Apple style OS X Dock

**URL:** https://forum.kirupa.com/t/apple-style-os-x-dock/275173
**Category:** flash
**Created:** [November 10, 2008, 8:40pm UTC](https://forum.kirupa.com/t/apple-style-os-x-dock/275173 "2008-11-10T20:40:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Hunter47](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@Hunter47](https://forum.kirupa.com/u/Hunter47)
#### Post date: [November 10, 2008, 8:40pm UTC](https://forum.kirupa.com/t/apple-style-os-x-dock/275173/1 "2008-11-10T20:40:48Z")

</div>

hi i fonud Apple style OS X Dock buttons and i don’t know how to active the buttons when i press on them.(this is the original script as i found it) here is the script :

Stage.scaleMode = ‘noScale’;  
this.dockActions = function(label) {  
switch(label) {  
case ‘Preferences’:  
trace(‘Actions here to handle Preferences.’);  
break;  
case ‘Blog’:  
trace(‘Actions here to handle Blog.’);  
break;  
case ‘Forum’:  
trace(‘Actions here to handle Forum.’);  
break;  
default:  
trace(‘Default action here.’);  
}  
}  
var dockTemplate = {  
layout: 0, /\* top | right | bottom | left | _rotation_ \*/  
icon\_size: 128,  
icon\_min: 32,  
icon\_max: 128,  
icon\_spacing: 2,  
items: [  
{ id: ‘settings’, label: ‘Preferences’},  
{ id: ‘blog’, label: ‘Blog’ },  
{ id: ‘forum’,label: ‘Forum’ },  
{ id: ‘shop’, label: ‘Store’ },  
{ id: ‘support’, label: ‘Tech Support’ },  
{ id: ‘search’, label: ‘Search Archives’ },  
{ id: ‘contact’, label: ‘Contact Us’ },  
{ id: ‘trash’, label: ‘Trash’ }  
],  
span: null,  
amplitude: null,  
callback: this.dockActions  
}  
this.attachMovie(‘Dock’, ‘menu\_mc’, 1, dockTemplate);  
this.menu\_mc.\_x = Stage.width / 2;  
this.menu\_mc.\_y = Stage.height;

if someone can help it will be great.
