简体   繁体   English

从Flash AS3迁移到AIR

[英]Migrate from Flash AS3 to AIR

I've been developing a project in AS3 but decided to switch to AIR instead, as I found out it's impossible to save files on user's hard drive without prompt appearing. 我一直在AS3中开发一个项目,但决定改用AIR,因为我发现无法在没有出现提示的情况下将文件保存在用户的硬盘上。 My question is, what changes do I have to expect? 我的问题是,我要期待什么变化? is the code written in same AS3 syntax/style? 代码是用相同的AS3语法/样式编写的吗? Did instantiating objects / drawing shapes / positioning system / stage change in AIR? 实例化对象/工程图形状/定位系统/平台在AIR中是否发生了变化? thanks. 谢谢。

Everything is the same from a code perspective, except that the AIR SDK includes quite a number of new APIs that are less restrictive and geared toward application development since the deployment target is no longer a web browser. 从代码的角度来看,所有内容都是相同的,除了AIR SDK包括许多新的API,由于部署目标不再是Web浏览器,所以这些API的限制较少并且更适合应用程序开发。

If you can, you should take a day or 2 and read thru the documentation so you will know what's available to you. 如果可以的话,您应该花一两天的时间仔细阅读文档,以了解可用的工具。 Make sure to select the most recent versions of AIR and Flash Player under Packages and Class Filters: Runtimes so the docs are populated with what you need. 确保在“ Packages and Class Filters: Runtimes下选择AIR和Flash Player的最新版本,以便在文档中填充所需的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM