The following example shows how you can display a custom title bar icon in a WindowedApplication container in Adobe AIR by setting the titleIcon property.

<mx:WindowedApplication name=“WindowedApplication_titleIcon_test”

 xmlns:mx="http://www.adobe.com/2006/mxml"
 layout="vertical"
 verticalAlign="middle"
 titleIcon="@Embed('assets/accept.png')">

</mx:WindowedApplication>

And edit the application’s XML file and edit the following lines:

<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
<systemChrome>none</systemChrome>

<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
<transparent>true</transparent>

Alex Smirnov

Senior Java Developer. JAVA, PHP, Cold Fusion, SQL, Air, Flash.

More Posts