Hello Ivo,

Does it help, (AIR Beta 2)?


<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication
 xmlns:mx="http://www.adobe.com/2006/mxml";
 layout="vertical"
 width="400"
 height="300"
 click="exit()"
 showStatusBar="false"
 showTitleBar="false"
 showGripper="false"
 verticalAlign="middle"
 horizontalAlign="center"
>

<mx:Button label="New Standard Window" click="createWindow(true); 
event.stopImmediatePropagation();"/>
<mx:Button label="New Splash Window" click="createWindow(false); 
event.stopImmediatePropagation();"/>
<mx:Script><![CDATA[

private function createWindow(std:Boolean):void
{
 var opt:NativeWindowInitOptions = new NativeWindowInitOptions();
 opt.maximizable = true;
 opt.minimizable = true;
 opt.systemChrome = 
std?NativeWindowSystemChrome.STANDARD:NativeWindowSystemChrome.NONE;
 opt.transparent = false;
 opt.type = std?NativeWindowType.NORMAL:NativeWindowType.UTILITY;

 var wnd:NativeWindow = new NativeWindow(opt);
 wnd.title = "Hello World";
 wnd.width = 100;
 wnd.height = 100;
 wnd.activate();
}

]]></mx:Script>

</mx:WindowedApplication>


Thanks,
Vadim.

----- Original Message ----- 
From: Ivo
To: [email protected]
Sent: Tuesday, November 06, 2007 8:19 PM
Subject: [flexcoders] Borderless, no title bar splash screen...


Is it possible to create a splash screen in Flex so that it doesnt
have the max/min/close buttons, title bar & status bar?

I've been playing with Application, with NativeWindow, with
WindowedApplication setting the showFlexChrome='false'but no luck.

I see in the docs that specifiying NativeWindowSystemChrome with a new
instance of NativeWindow should do it but I am unable to figure how to
properly use it. Any examples I can take a look at out there?

Thanks,

Ivo


 

Reply via email to