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;