Centering SWF in a browser

Hello guys,

I have some questions about centerting your SWF inside a browser using actionscript 3.0.

  • How can I center my main SWF inside the browser without stretching the the swf? I just want it to be center both horizontal and vertical when you resize the browser.

  • I found some tutorials but it is only referring to just ONE movieclip. What if I want to center the whole stage? Is there any other way to call the stage that has content in it?

I hope you guys can help me.

Thank You!