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
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?
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>
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
Manager AUGDF - Adobe User Group do Distrito Federal
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
>
Hi
Thanks
I just found the .xml file.
I get a 303 error when I do a release build.
Here's what I did
1. Add the file Icon.png to the src folder
2. Update the xml as follows.
<icon>
<image16x16>Icon.png</image16x16>
<!--<image32x32></image32x32>
<image48x48></image48x48>
<image128x128></image128x128>-->
</icon>
3. Do a release build
North America
Europe, Middle East and Africa
Asia Pacific