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.

<?xml version="1.0" encoding="utf-8"?>
<!-- http://airexamples.com/2010/03/13/displaying-a-custom-title-bar-icon-in-a-windowedapplication-container-in-adobe-air/ -->
<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>
Tagged with:
 

4 Responses to Displaying a custom title bar icon in a WindowedApplication container in Adobe AIR

  1. Erol says:

    Thank you very much nice tut

  2. Mahmut says:

    Thank you for tutorial

  3. Art V Studio says:

    Why Not Works!??

  4. Maya says:

    估计楼上的路径错了

Leave a Reply