# Not centered when published

**URL:** <https://forum.kirupa.com/t/not-centered-when-published/217186>\
**Category:** Uncategorized\
**Created:** [February 23, 2007, 10:34pm UTC](https://forum.kirupa.com/t/not-centered-when-published/217186 "2007-02-23T22:34:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [February 23, 2007, 10:34pm UTC](https://forum.kirupa.com/t/not-centered-when-published/217186/1 "2007-02-23T22:34:51Z")

</div>

I can’t get my “dock” to center horizontally when i publish the movie for full browser flash(100%/no scale). It works fine when you test the movie. I don’t get it.

heres the code

Stage.scaleMode = ‘noScale’;

this.dockActions = function(label) {  
switch(label) {  
case ‘oc’:  
trace  
\_root.gotoAndPlay(“oc”);  
break;  
case ‘bond’:  
trace  
\_root.gotoAndPlay(“bond”);  
break;  
case ‘marshall’:  
trace  
\_root.gotoAndPlay(“marshall”);  
break;  
case ‘kitchen’:  
trace  
\_root.gotoAndPlay(“kitchen”);  
break;  
case ‘impulse’:  
trace  
\_root.gotoAndPlay(“impulse”);  
break;  
case ‘donovan’:  
trace  
\_root.gotoAndPlay(“donovan”);  
break;  
case ‘svhf’:  
trace  
\_root.gotoAndPlay(“svhf”);  
break;  
case ‘ghost’:  
trace  
\_root.gotoAndPlay(“ghost”);  
break;  
}  
}

var dockTemplate = {  
layout: 180, //ROTATION  
icon\_size: 100,//PIXELS, SAME SIZE AS ICON MAX  
icon\_min: 50,//INITIAL ICON SIZE  
icon\_max: 100,//\<\<\<ICON ZOOM SIZE  
icon\_spacing: 2,  
items: [  
{ id: ‘ghost’, label: ‘ghost’},  
{ id: ‘svhf’, label: ‘svhf’ },  
{ id: ‘donovan’,label: ‘donovan’ },  
{ id: ‘impulse’, label: ‘impulse’ },  
{ id: ‘kitchen’, label: ‘kitchen’ },  
{ id: ‘marshall’, label: ‘marshall’ },  
{ id: ‘bond’, label: ‘bond’ },  
{ id: ‘oc’, label: ‘oc’ }  
],  
span: null,  
amplitude: null,  
callback: this.dockActions  
}

this.attachMovie(‘Dock’, ‘menu\_mc’, 1, dockTemplate);  
//HORIZONTAL POSITION  
this.menu\_mc.\_x = Stage.width/2;  
//VERTICAL POSITION  
this.menu\_mc.\_y = 1;
