AIR Android: build an open-source development environment

Source: Internet
Author: User

Build an open-source development environment

In the two development environments described earlier, Flash Professional CS5 and Flash Builder are both commercial products and are not suitable for open-source developers. The open-source technology on the Flash Platform has been around for a long time. As early as in the era of ActionScript 2.0, it already has open-source compilers and script editing tools. Now, open-source technology is quite mature.

The following describes how to build an open-source development environment.

Step 1 download the air sdk.

Adobe's official site provides free download of the air sdk at http://www.adobe.com/go/air_sdk. the latest version is 3.1. Select windows.pdf and decompress the downloaded package adobeairsdk.zip to the d: \ dev \ AIR_SDK directory.

Step 2 download the Flex SDK.

The open-source base camp opensource.adobe.com of Adobe provides all resources related to the Flex SDK. developers can see the development progress of all versions, including some new versions that are still in the test phase. The development team will release a new Build every once in a while for some developers who are keen on new technologies to try it out.

Flex 4.5 Is http://opensource.adobe be.com/wiki/display/flexsdk/download?flex=4.5. When downloading, select the link in the Adobe Flex SDK column, as shown in figure 1-10. This package contains all the tools required for development, such as Adobe AIR packaging tools and Flash Player.

 
Figure 1-10 download the Flex SDK

As of the completion of writing this book, the latest release version of Adobe Flex SDK is 4.5.1 and the built-in air sdk version is 2.6. You need to manually upgrade the air sdk to the latest 3.1. Decompress the downloaded package to the D: \ dev \ flex_sdk_4.5.1 folder, copy all the files in D: \ dev \ AIR_SDK to the Flex SDK folder, and overwrite all files of the same name, in this way, the AIR package in the Flex SDK is updated to version 3.1. Finally, add "; D: \ dev \ flex_sdk_4.5.1 \ bin" after the system environment variable Path to facilitate the call of the tool software in the SDK ".

In fact, we can use this method to configure custom Flex sdks and use them in combination with Flash Builder. Interested readers can experiment on their own.

Step 3 select a script editing software.

There are a lot of editors that support compiling ActionScript, but there are not many open-source and easy-to-use editors. I recommend a small and very practical open-source software, Flash Develop. Flash Develop (FD) was born in The ActionScript 2.0 era. After several years of development, it now supports multiple programming languages, including C ++, PHP, and HaXe, it is one of the best open-source tools in the Flash technology field.

The official website of Flash Develop is http://www.flashdevelop.org/and the latest version is 4.0.0 RC2. Although it is not officially released, its functions are quite stable ). Because the software itself uses. NET technology, make sure that Microsoft's. NET 2.0 runtime or later is installed before installation. Windows 7 has built-in. NET runtime. If it is a Windows XP system, the. NET 2.0 is supported after the sp2 upgrade package is installed. If the system does not support this function, you can download it directly from the Microsoft Website: http://msdn.microsoft.com/zh-cn/netframework /.

Download the latest FD installation program from the official site and start the installation. The Flex SDK and air sdk are automatically downloaded by default during the FD installation. The software package will be downloaded online at the end of the software installation. You can simply cancel the configuration because the configuration has been downloaded.

Start FD, click the Tools> Program Setting command in the menu to bring up the Setting window, select AS3Context in the left-side navigation bar, and then find Installed Flex SDKs in the Language class in the configuration item on the right to edit the configuration item, add a new SDK item, point the path to the created Flex SDK folder D: \ dev \ flex_sdk_4.5.1, and save the settings. So far, FD configuration is complete.

Note: compared with the previous version, FD 4.0 has made great improvements in many aspects. One of the key points is to improve the support for AIR mobile development, and multiple built-in mobile development templates, it supports development and debugging on both Android and iOS platforms, simplifying the development process and program release process.

By now, the entire development environment has been set up.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.