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:
 

3 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!??

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Spam Protection by WP-SpamFree