Splash Screen centering

Hi,
I wanted to know what is the best way of centering an AIR application onto the screen.
i am trying to add a splash screen and thats just appearing on the top left corner instead of center

I have read about using some function known as CAPABILITIES which gets u the screen resolution and then subtracting the application width and height…
but it doesnt work for me.

can some 1 please suggest a better solution to this problem.

kind regards
surf