apache-flex - 如何为我的 Flex AIR 应用程序使用自定义图标?

标签 apache-flex air

我正在尝试更改桌面上 Flex 4.5 AIR 应用程序的默认图标。

我尝试修改 Main-app.xml Adob​​e AIR 应用程序描述 rune 件模板文件:

<icon>
    <image16x16>src/assets/app_icons/icon_016.png</image16x16>
    <image32x32>src/assets/app_icons/icon_032.png</image32x32>
    <image48x48>src/assets/app_icons/icon_048.png</image48x48>
    <image128x128>src/assets/app_icons/icon_128.png</image128x128>
</icon>

但是,这似乎不起作用,并且在运行应用程序时我仍然看到默认的 AIR 图标。我想知道我是否把图标的相对路径弄错了?

注意:我也尝试了 assets/app_icons/ 路径,但这也不起作用。

最佳答案

我终于找到了这个问题“303 app.xml icon file is Missing in package”的解决方案

  1. src内创建assets文件夹,而不是应用程序文件夹
  2. 尝试放入所有版本的图标尺寸

    <!-- 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>assets/icon16.png</image16x16>
    <image32x32>assets/icon32.png</image32x32>
    <image48x48>assets/icon48.png</image48x48>
    <image72x72>assets/icon72.png</image72x72>
    <image128x128>assets/icon128.png</image128x128></icon>
    

希望对你有帮助

关于apache-flex - 如何为我的 Flex AIR 应用程序使用自定义图标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8610839/

相关文章:

apache-flex - 过滤函数问题

apache-flex - 弹性 : Popup Window - Get [ok] or [cancel]

ios - AIR 模块 + iOS

javascript - 是否有适用于 Adob​​e Air 应用程序的 JavaScript 模板引擎?

android - AIR/Android NFC 标签正在打开浏览器

javascript - 从 Playbook 应用程序打开文件

flash - Flex、Flash和ActionScript 3.0有什么关系

php - 动态类型语言和远程方法调用

apache-flex - 如何从同时播放的所有声音中获取声音数据? ( ActionScript 闪烁)

ios - as3 组件,类似于 iOS 的 UIScrollView