Please check the following code
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
width="450" height="400" layout="absolute"
creationComplete="creationCompleteHandler(event);">
<mx:Script>
<![CDATA[
private function creationCompleteHandler(event: Event): void
{
nativeWindow.x = (Capabilities.screenResolutionX -
nativeWindow.width) / 2;
nativeWindow.y = (Capabilities.screenResolutionY -
nativeWindow.height) / 2;
}
]]>
</mx:Script>
</mx:WindowedApplication>
use it, it will make your window center.
Regards
Seth
http://blog.thesoftsol.com
--- In [email protected], Roy Pardi <roypa...@...> wrote:
>
> Hi - I'm working on a WindowedApplication in FB and when I run or debug it,
> the resulting window is always in the lower right of my screen. Is there
> some option in FB to always center it on the current screen? I've looked
> through the prefs, etc. but haven't found anything.
>
> I figured out how to center the window through code but it seems like I am
> missing some simple GUI setting in FB.
>
> thanks / Roy
> --
> -----------------------------------------------------------------
> http://www.roypardi.com/
>