AIR配置问题

来源:互联网 发布:知识产权 外籍书 知乎 编辑:程序博客网 时间:2024/05/22 02:03

AIR SDK和FlexSDK的版本兼容问题

配置花了n多时间

文件截图:

从官网下载AIR SDK开发包——AdobeAIRSDK.tbz2,解压,居然报错:

!   C:\Documents and Settings\Administrator\桌面\miqi\AdobeAIRSDK.tbz2: 无法打开 Versions\Current\Adobe AIR (runtimes\air\mac\Adobe AIR.framework\Adobe AIR --> Versions\Current\Adobe AIR)!   C:\Documents and Settings\Administrator\桌面\miqi\AdobeAIRSDK.tbz2: 符号连接指向不存在的文件!   C:\Documents and Settings\Administrator\桌面\miqi\AdobeAIRSDK.tbz2: 无法创建 ersions\Current\Resources!   C:\Documents and Settings\Administrator\桌面\miqi\AdobeAIRSDK.tbz2: 无法创建 

直接忽略

报错:error while loading initial content

细节:初始值错误,详细见
   http://rss.9ria.com/?p=1657
   http://blog.csdn.net/kongweian/article/details/5454467

报错:AIR ADL: invalid application descriptor: versionNumber musthave anon-empty value
细节:是指app.xml不规矩,但是我把app.xml拖到IE里看,XML没有问题。
  http://labs.mstudio.com/?p=226#more-226  英文
  http://www.flashdevelop.org/community/viewtopic.php?f=9&t=8412   FD官网

结论

解决不了,跳过,不用SDK2,用旧版本,AIR 1.5 + SDK 1.5。

 

好贴


AIR设置

http://help.adobe.com/en_US/air/build/WS144092a96ffef7cc4c0afd1212601c9a36f-8000.html    Creating your first desktop AIR application with the Flex SDK  

FlashDevelop AIR配置及生成

http://wisteriaflash.blog.163.com/blog/static/11059380520112284449311/

AIR与iPhone

http://www.9ria.com/news/2011/0622/23277.html    Flex移动应用项目中的iOS 话题 – 概念验证 
http://www.9ria.com/news/2011/0704/23308.html  使用Air 2.7 和 FlashDevelop对iPhone进行导出 – 第一部分,安装 
http://blogs.adobe.com/jasonsj/2011/05/flex45_air25_playbook.html   How To: Use Flex 4.5 with AIR 2.5 on the BlackBerry PlayBook ,黑莓手机

AIR知识

http://hi.baidu.com/dnadmt2009/blog/item/0405b63cdd1601d79f3d6293.html  AIR AIR 使用文件一
http://liuyongxing2006.blog.163.com/blog/static/4990425620105745133714/  AS3.0中Matrix类的学习经验(改变注册点、旋转图像)
http://apps.hi.baidu.com/share/detail/24078110,http://bbs.9ria.com/thread-12423-1-1.html [AS3]截图并保存到服务器之ASP[转]  
http://wiki.9ria.com/Flash常所用    Flash常所用


好站

http://www.riaidea.com/blog/archives/category/flash-cs3as3

好资源

http://code.google.com/p/flexlessons/downloads/list   flex Lesson 

续   在公司机器上准备AIR开发环境

先装FB4,这个版本:
[Flash.Builder.4.简体中文正式版].FlashBuilder_4_LS10.Windows独立安装版.exe

这是个解压包,解压到D盘。
接着安装到D盘Adobe目录下

 安装好后,把D:\Program Files (x86)\Adobe\Adobe Flash Builder 4的sdk文件夹复制到D盘
接下来把2个SDK合并,把AIR的全部内容


复制到D:\sdks\3.5.0
打开FD,新建AIR项目


设置路径

设置SDK路径

http://hi.baidu.com/fsnhf/blog/item/6c067bde91c3ce5fccbf1a3c.html AIR读取图片
http://bbs.9ria.com/thread-85208-1-1.html  遍历文件夹
http://blog.csdn.net/a7719665/article/details/5666552  Flex:Air文件夹的遍历
先是在移动硬盘上做,可能是上一个AIR进程没关,按F5发布时FD调用的cmd卡死了,然后机器蓝屏。重启后,把项目从移动硬盘复制到D盘,发布,报错,
系统找不到指定的文件:

重新新建AIR项目,发布,还是报错。
打开FD设置,发现问题:

改成正确的路径:

再打开FD项目,发布,成功。最后把刚才临时创建的项目删除。
AIR 遍历文件夹

AIR 获取文件后缀


http://code.google.com/p/myydkproject/source/checkout   download

http://blog.csdn.net/djy1135/article/details/4776593  AS3 DataGrid学习

 

 

右下角, waiting for Flash Player to connect to debugger 等了半分钟

弹出框
发生 I/O 错误。
搜索 site:csdn.net waiting for Flash Player to connect to debugger 发生 I/O 错误,

上网找了几个

都没用


通常每个套接字地址(协议/网络地址/端口)只允许使用一次。


没办法

只好转战 FB

FB4的SDK4有大变,去掉了fl.data.DataProvider类

FB4和之前大不同,换成了以数据位中心的架构

具体看

http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/WS6f97d7caa66ef6eb1e63e3d11b6c4d03da-7ffd.html

FB4这种做法让人恼火






 

原创粉丝点击