Skip navigation
Currently Being Moderated

Adobe air custom icon

Sep 13, 2009 5:49 AM



I've tried several examples but I can't seem to get the desktop icon (i.e. the icon in the top left of the form) to change on a windows host.


Does anyone know how to do this?


I'm using Flex 3.



  • Currently Being Moderated
    Sep 14, 2009 2:45 AM   in reply to bk843746

    If you are debugging it from FB, you'll never see the icon changing (for some reason).


    You actually have to install it and run it "properly" to see the icons.


    Other than that... are you setting the correct names in the foo_app.xml file and making sure that they are being copied into the .air file along with the swf?

    Mark as:
  • Currently Being Moderated
    Sep 15, 2009 1:21 AM   in reply to bk843746

    The code you've posted is for changing the dock / system tray icon, not for changing the window icon.


    Look at your _app.xml file and add the image you want to that. You don't have to do it programatically. Just make sure that it's copied into your .air file when you deploy.




    <!-- 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. -->

    Mark as:
  • Currently Being Moderated
    Sep 15, 2009 7:08 AM   in reply to bk843746

    try this e3d118666ade46-7dcc.html


    or look my sample





    Leonardo França

    Adobe Certified Expert Flex 3 with AIR

    Adobe Certified Expert Rich Internet Application Specialist v1.0

    Adobe Certified Expert Flash CS3 Professional

    Certified Professional Adobe Flex 2 Developer

    Adobe Certified Professional Flash MX 2004 Developer


    Manager AUGDF - Adobe User Group do Distrito Federal






    bk843746 escreveu:



    I get the error "Class cannot be nested" when I copy that xml to the mxml file.


    Am I doing something wrong?


    I'm using Flex 3.




    Mark as:
  • Currently Being Moderated
    Sep 16, 2009 12:55 AM   in reply to bk843746

    The icon needs to sit in the same directory as the main MXML file for your application.


    Do you have the option to copy non-embedded files selected in the compiler, as you need this to happen as well.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points