- Flash Development for Android Cookbook
- Joseph Labrecque
- 548字
- 2021-04-02 19:15:15
Enabling Flash Builder 4 or Flex Builder to access Flex Mobile SDKs
You don't necessarily need to have the latest version of Flash Builder to write applications for Android. This recipe will demonstrate how to integrate the latest Flex SDK into an older version of Flash Builder (or even Flex Builder) to take advantage of the mobile framework improvements.
Note
Even though we will be able to use the new component sets and streamlined structure for Android, many of the workflow enhancements such as support for a new mobile application view structure, optimized component skins with touch and gesture support, and other niceties found in newer versions of Flash Builder simply will not exist and we will have to compile the application for distribution using the AIR SDK and command line tools.
How to do it…
The following steps are used for getting an older version of Flash Builder configured for Android development:
- Visit the Adobe Open Source website at http://opensource.adobe.com/ and locate the latest build of the Flex SDK.
- Download a
ZIP
file of the latest Adobe Flex SDK and extract it to a hard drive to a location you will remember. For instance,C:\SDKs\Flex
. - Launch Flash Builder and go to Window | Preferences.
- Scroll down the Flash Builder menu item and select Installed Flex SDKs. You will now see a list of each of the SDKs currently available in your copy of Flash Builder:
- Click the button labeled Add… and browse to the location of the Flex SDK you recently downloaded.
- Provide the dialog with a meaningful name and click OK. For example,
Flex 4.5
. If we want to be very specific, we can always name it the full build name, such as:Flex 4.5.0.16076
. - The
Flex 4.5
SDK will now be available for use in your application. To use it in a project, simply select this SDK when creating a new project or when modifying the Flex Compiler properties in an existing project.
How it works…
Using a more recent version of the Flex SDK within Flash Builder allows us access to the mobile theming options and other specific APIs not available in previous SDK releases. This will also expose mobile classes to code hinting and other IDE workflow constructs.
There's more…
If changing the Flex SDK version to be used in a project, we may receive a number of warnings or errors due to changes in the framework from version to version. Simply go through the project files and correct each warning or error that appears within the Problems panel to correct any issues.
If developing projects that target Flash Player on Android, you simply need to be mindful of device and operating system constraints.
See also…
It is important to note that versions of Flash Builder prior to Flash Builder 4.5 will not include the ability to compile projects to .APK
(the Android application file extension) and you will need to compile your project using the freely available AIR SDK. See Chapter 11, for information on how to do this.
It is also worth a mention that while you can develop your applications for Android using older versions of Flash Builder, you will not receive many of the benefits provided by a newer release, such as code completion.
- 基于元胞自動(dòng)機(jī)的城市路網(wǎng)交通流建模與仿真
- Maya 2019三維動(dòng)畫基礎(chǔ)案例教程
- 照相館的故事:Photoshop CC 2018調(diào)色合成精修
- UG NX 9.0中文版基礎(chǔ)與實(shí)例教程
- 新編AutoCAD 2016從入門到精通
- After Effects CS6入門與提高
- BIRT 2.6 Data Analysis and Reporting
- Photoshop CS6實(shí)戰(zhàn)從入門到精通(超值版)
- 學(xué)摳圖:Photoshop專業(yè)摳圖技法案例教程
- 中文版After Effects 2022基礎(chǔ)教程
- 從零開始:AutoCAD 2010中文版建筑制圖基礎(chǔ)培訓(xùn)教程(第2版)
- 音樂日記:Studio One 6場景×風(fēng)格編曲實(shí)用教程
- Choosing an Open Source CMS: Beginner's Guide
- Photoshop & Illustrator平面設(shè)計(jì)火星課堂
- Photoshop CC平面設(shè)計(jì)實(shí)戰(zhàn)從入門到精通