Add an icon to your ActionScript project

Before you begin: Create an image in PNG format with a maximum resolution of 114 x 114 pixels.

  1. In Adobe Flash Builder, in the Package Explorer pane, in your project tree, right-click the src folder.
  2. Click Import.
  3. Expand General, and select File System.

    Screenshot showing the import screen, selecting File System

  4. Click Next.
  5. Beside the From directory field, click Browse.
  6. Find the folder that contains your image.
  7. Click OK.
  8. Select the check box beside your image.

    Screenshot showing File System import screen, showing HelloWorld icons.

  9. Click Finish.

After you finish: You must update the bar-descriptor.xml file to notify the BlackBerry 10 SDK for Adobe AIR that the image is the icon for your application.

  1. In Adobe Flash Builder, in the Package explorer view, in the src folder for your project, double-click the bar-descriptor.xml file.
  2. In the text editor pane for bar-descriptor.xml, update the value of the image element to use your icon. Between the image elements, replace your_image.png with the name of your image file.
      <icon><image>your_image.png</image></icon>
    
  3. On the File menu, click Save.
comments powered by Disqus