Take a look here:
just an example of a movieclip 1000x600px, nothing else on stage.
this is the code from the flash, so i want it centered:
stage.align = "topLeft";
stage.scaleMode = "noScale";
stage.addEventListener(Event.RESIZE, onResizeS);
function onResizeS(e:Event):void{
mc.x = (stage.stageWidth / 2 - mc.width / 2);
mc.y = (stage.stageHeight / 2 - mc.height / 2);
}
onResizeS(null)
why does it show me vertical scrollbar?
what do i need to set in html style so that the scrollbars are hidden, and show only if window size get smaller than flash size (in this case 1000x600px)