`
i5land
  • 浏览: 50067 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

建立第一个AIR程序(html fof air)

    博客分类:
  • air
阅读更多
可以从,http://www.adobe.com/go/air下下载,安装sdk机器上必须安装了jdk和jre
安装完sdk后,可以将bin目录添加到系统路径下,方法和配置JDK一样,这样就可以在任何位置执行了

开发air程序需要配置一个他的描述文件,它是个xml,给起名为application.xml
<?xml version="1.0" encoding="utf-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.0">
	<id>airtest.index</id>
	<filename>index</filename>
	<version>1.0</version>
	<initialWindow>
		<content>index.html</content>
		<visible>true</visible>
	</initialWindow>
</application>


配置完文件后需要创建主文件,现在我们采用html开发,也可以采用flash,flex
<html>
<head>
<title>xubhtest<title>
</head>
<body>
<input type="text" value="this is text"/>
</body>
</html>

这和以前开发web程序没什么区别css,javascript都可以引用

测试一下应用程序能否运行
adl airtest/application.xml
如下图:




部署生成air之前需要生成个keystore
adt -certificate -cn SelfSign -ou Dev -o "Example" -c US 2048-RSA cert.pfx 密码
keystore 文件包含用于对应用程序签名的私钥。切勿在 AIR 包中包含签名证书!如果在 ADT 命令中使用通配符,请将
keystore 文件放置到其他不同位置,使其不包含在包中

然后就可以部署生成.air文件
D:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\bin>adt -package -storetype pkc
s12 -keystore ../cert.pfx airtest/airTest.air airtest/application.xml airtest/ind
ex.html
password: 密码

然后就可以看见airtest.air文件生成了
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics