Skip navigation
bk843746
Currently Being Moderated

Adobe air custom icon

Sep 13, 2009 5:49 AM

Hi

 

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.

 

Thanks

 
Replies
  • 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.

     

    Example

     

    <!-- 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>icon_016</image16x16>
            <image32x32>icon_032</image32x32>
            <image48x48>icon_048</image48x48>
            <image128x128>icon_128</image128x128>
        </icon>

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

    try this

    http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63 e3d118666ade46-7dcc.html

     

    or look my sample

    http://www.leonardofranca.com.br/files/systray.zip

     

    regards

     

    --

    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

    http://www.leonardofranca.com

    http://twitter/leofederal

    Manager AUGDF - Adobe User Group do Distrito Federal

    http://www.augdf.com.br

    http://twitter/augdf

     

     

     

     

    bk843746 escreveu:

    Hi

     

    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.

     

    Thanks

    >

     
    |
    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