AIR配置文件详解

ContractedBlock.gif ExpandedBlockStart.gif 代码
 
   
1 <? xml version=”1.0″ encoding=”UTF-8″ ?>
2   < application xmlns =”http://ns.adobe.com/air/application/1.0“>
3
4 <!– Adobe AIR Application Descriptor File Template.
5
6 Specifies parameters for identifying, installing, and launching AIR applications.
7 See http://www.adobe.com/go/air_1.0_application_descriptor for complete documentation.
8
9 xmlns – The Adobe AIR namespace: http://ns.adobe.com/air/application/1.0
10 The last segment of the namespace specifies the version
11 of the AIR runtime required for this application to run.
12
13 minimumPatchLevel – The minimum patch level of the AIR runtime required to run
14 the application. Optional. 程序运行的最小版本号
15 >
16
17 <! – The application identifier string, unique to this application. Required. 程序的唯一ID,安装的时候如果存在相同ID的时候,则执行更新操作– >
18 < id > HelloWorld </ id >
19
20 <! – Used as the filename for the application. Required. 程序的文件名称– >
21 < filename > HelloWorld </ filename >
22
23 <! – The name that is displayed in the AIR application installer. Optional. 安装程序时候显示的名称– >
24 < name > HelloWorld </ name >
25
26 <! – An application version designator (such as “v1″, “2.5″, or “Alpha 1″). Required. 程序版本号– >
27 < version > v1 </ version >
28
29 <! – Description, displayed in the AIR application installer. Optional. 安装时候显示的程序描述– >
30 <! – <description > </ description > –>
31
32 <! – Copyright information. Optional 版权信息– >
33 <! – <copyright > </ copyright > –>
34
35 <! – Settings for the application’s initial window. Required. 初始化窗体信息– >
36 < initialWindow >
37 <! – The main SWF or HTML file of the application. Required. 主程序或HTML文件– >
38 <! – Note: In Flex Builder, the SWF reference is set automatically. – >
39 < content > [This value will be overwritten by Flex Builder in the output app.xml] </ content >
40
41 <! – The title of the main window. Optional. 主窗体的标题– >
42 <! – <title > </ title > –>
43
44 <! – The type of system chrome to use (either “standard” or “none”). Optional. Default standard. 是否使用系统的窗体控制,包括最大化、最小化、关闭– >
45 < systemChrome > none </ systemChrome >
46
47 <! – Whether the window is transparent. Only applicable when systemChrome is false. Optional. Default false. 窗体是否透明,当systemChrome 设为none时,此项如果设为true,则显示透明窗体– >
48 < transparent > true </ transparent >
49
50 <! – Whether the window is initially visible. Optional. Default false.窗体初始是否可见 – >
51 <! – <visible > </ visible > –>
52
53 <! – Whether the user can minimize the window. Optional. Default true.能否最小化窗体 – >
54 <! – <minimizable > </ minimizable > –>
55
56 <! – Whether the user can maximize the window. Optional. Default true. 能否最大化窗体– >
57 <! – <maximizable > </ maximizable > –>
58
59 <! – Whether the user can resize the window. Optional. Default true.能否调整窗体大小 – >
60 <! – <resizable > </ resizable > –>
61
62 <! – The window’s initial width. Optional.初始窗体大小 – >
63 <! – <width > </ width > –>
64
65 <! – The window’s initial height. Optional.窗体初始高度 – >
66 <! – <height > </ height > –>
67
68 <! – The window’s initial x position. Optional. 初始窗体的屏幕位置的X坐标– >
69 <! – <x > </ x > –>
70
71 <! – The window’s initial y position. Optional. 初始窗体的屏幕位置的Y坐标– >
72 <! – <y > </ y > –>
73
74 <! – The window’s minimum size, specified as a width/height pair, such as “400 200″. Optional. 窗体最小的长宽值– >
75 <! – <minSize > </ minSize > –>
76
77 <! – The window’s initial maximum size, specified as a width/height pair, such as “1600 1200″. Optional. 窗体最大能有多大– >
78 <! – <maxSize > </ maxSize > –>
79 </ initialWindow >
80
81 <! – The subpath of the standard default installation location to use. Optional. 程序默认安装的目录– >
82
83
84 <! –installFolder > AIRs/Helloworld </ installFolder– > <! – 默认安装路径 C:\Program Files\AIRs\Helloworld– >
85
86
87 <! – The subpath of the Windows Start/Programs menu to use. Optional. 开始菜单的文件夹位置– >
88 <! – <programMenuFolder > </ programMenuFolder > –>
89
90 <! – The icon the system uses for the application. For at least one resolution,
91 specify the path to a PNG file included in the AIR package. Optional. 程序图标– >
92 <! – <icon >
93 < image16x16 ></ image16x16 > <! – 系统菜单中及系统控制面板添加程序中的图标 – >
94 < image32x32 ></ image32x32 > <! – 桌面图标,窗口图标 – >
95 < image48x48 ></ image48x48 > <! – 安装目录EXE文件图标 – >
96 < image128x128 ></ image128x128 >
97 </ icon > –>
98
99 <! – Whether the application handles the update when a user double-clicks an update version
100 of the AIR file (true), or the default AIR application installer handles the update (false).
101 Optional. Default false. 如果是同一个AIR程序,点击新版本的安装程序是否自动进行更新操作– >
102 <! – <customUpdateUI > </ customUpdateUI > –>
103
104 <! – Whether the application can be launched when the user clicks a link in a web browser.
105 Optional. Default false. 程序是否可以通过浏览器激活– >
106 <! – <allowBrowserInvocation > </ allowBrowserInvocation > –>
107
108 <! – Listing of file types for which the application can register. Optional.列出程序可以关联的文件类型 – >
109 <! – <fileTypes > –>
110
111 <! – Defines one file type. Optional. – >
112 <! – <fileType > –>
113
114 <! – The name that the system displays for the registered file type. Required.显示类型的名称 – >
115 <! – <name > </ name > –>
116
117 <! – The extension to register. Required. 要注册的扩展名– >
118 <! – <extension > </ extension > –>
119
120 <! – The description of the file type. Optional. 文件类型的描述– >
121 <! – <description > </ description > –>
122
123 <! – The MIME type. Optional.浏览器处理的文件类型 – >
124 <! – <contentType > </ contentType > –>
125
126 <! – The icon to display for the file type. Optional. 文件类型的图标– >
127 <! – <icon >
128 < image16x16 ></ image16x16 >
129 < image32x32 ></ image32x32 >
130 < image48x48 ></ image48x48 >
131 < image128x128 ></ image128x128 >
132 </ icon > –>
133
134 <! – </fileType > –>
135 <! – </fileTypes > –>
136
137 </ application >

 

转载于:https://www.cnblogs.com/TsengYuen/archive/2011/01/10/1931958.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值