4 Replies Latest reply on Aug 27, 2009 10:42 AM by AmitVyawahare

    How to change icon

    AmitVyawahare

      I created a desktop application using flex. I want to change the desktop icon which is defaultly created by flex.

      I have some sample icon with me. I like to change that default icon with new icon. Thank you.

       

      --Amit

        • 1. Re: How to change icon
          Ratsnackbar Level 2

          Setting icons for an AIR application is done in the configuration XML file under the Node <icon>.  It should look like this:

           

          <icon>

               <image16x16>assets/myIcon16.png</image16x16>

               <image32x32>assets/myIcon32.png</image32x32>

               <image48x48>assets/myIcon48.png</image48x48>

               <image128x128>assets/myIcon128.png</image128x128>

          </icon>

           

          Of course your icon names and possibly the path would be different.

           

          -Joe

          1 person found this helpful
          • 2. Re: How to change icon
            AmitVyawahare Level 1

            Joe,

             

            Where do i find  this configuration XML file.

            Thank you,

             

            --Amit

            • 3. Re: How to change icon
              Ratsnackbar Level 2

              If you are using Flex Builder (or Flash Builder) it is normally in the same location as your main mxml file.  It will be named something like yourApplicationName-app.xml

               

              The header of the file should look something like this.

               

              <?xml version="1.0" encoding="utf-8" standalone="no"?>
              <application xmlns="http://ns.adobe.com/air/application/1.5">


              <!-- Adobe AIR Application Descriptor File Template.

               

              The default properties of your AIR application will be laid out in XML.  Some of them are Optional.  It would be a good idea to check liveDocs for a complete description as a great many of the settings in the file are of great use in customizing your application.

               

              -Joe

              1 person found this helpful
              • 4. Re: How to change icon
                AmitVyawahare Level 1

                I tryed what you ask me do but i am getting error :

                 

                Error creatating AIR file 308 ,Error ,/CheckWeather/src/Weather.png

                 

                <icon>

                <image16x16>/CheckWeather/src/Weather.png</image16x16>

                <image32x32>/CheckWeather/src/Weather.png</image32x32>

                <image48x48>/CheckWeather/src/Weather.png</image48x48>

                <image128x128>/CheckWeather/src/Weather.png</image128x128>

                </icon>

                 

                --Amit