Displaying custom icons in an Adobe AIR application

by Peter deHaan on December 30, 2008 · 4 comments

in General

The following example shows how you can display custom icons in an Adobe AIR application by setting the <icon> node in the AIR application’s descriptor XML file.

Full code after the jump.

<!-- The icon the system uses for the application. For at least one resolution,
     specify the path to a PNG file included in the AIR package. Optional. -->
<icon>
    <image16x16>assets/AppIcon16.png</image16x16>
    <image32x32>assets/AppIcon32.png</image32x32>
    <image48x48>assets/AppIcon48.png</image48x48>
    <image128x128>assets/AppIcon128.png</image128x128>
</icon>

application_XML_icon_test srcview

{ 4 comments… read them below or add one }

1 Tomas Sancio 02.08.09 at 6:47 pm

Thank you very much! Helped me a lot.

2 Brentski 02.24.09 at 8:53 am

Your paths are different here. “/assets/” and “assets/”

Much confusion may be caused by such little things.

3 Arulraj 06.01.09 at 7:45 am

for me… air.xml(29): error 105: application.icon.image16×16 contains an invalid value

how to resolve this… can anyone help me out…

4 Arulraj 06.01.09 at 7:47 am

assets\icon_016.png
assets\icon_032.png
assets\icon_048.png
assets\icon_128.png

this is my file.. i m working in windows..

Leave a Comment

You can 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="">

Previous post:

Next post: