Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
Review and Checkout
Adobe Developer Connection / Adobe AIR Developer Center /

Using native extensions in Adobe Flash Professional CS6

by Alex Liebert

Alex Liebert
  • Milkman Games

Content

  • Acquiring native extension (ANE) files
  • Adding native extensions to a Flash Professional CS6 project
  • Implementing ActionScript code
  • Where to go from here

Created

4 June 2012

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
ActionScriptAdobe AIRAndroidFlash Professionalgame developmentgamingiOSmobilenative extensions
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

Requirements

Prerequisite knowledge

Experience building games for iOS or Android with Flash Professional and Adobe AIR will help you make the most of this article.

 

Additional required other products

  • In-App Purchase, iAd, Facebook, or other native extensions from Milkman Games
  • Community native extensions on Adobe Developer Connection

User level

Beginning

Required products

  • Flash Professional (Download trial)

With the introduction of the AIR 3 SDK, Adobe enabled third-party developers to extend the AIR platform with native code. This capability made AIR apps more competitive than ever before, because it enabled them to take advantage of great platform features, including like In-App Purchase, Facebook, iAd, GameCenter, and AdMob.  With the recent release of Flash Professional CS6, you can integrate AIR native extensions into your applications with just a few clicks.

You can not use native extensions targeting the Android or iOS platforms in applications targeting AIR for desktop. If you try to use a native extension targeting a mobile platform in an application targeting AIR for the desktop, you will receive an error similar to this one: "Implementation for native extension XXX required by the application was not found for the target platform."

Acquiring native extension (ANE) files

Native extensions for AIR are packaged as files with the .ane extension.  Milkman Games provides commercial extensions for iOS, Android, and Amazon including Ratings, Facebook, Twitter, In-App Purchase, Game Center, AdMob, and other extensions.  Adobe maintains a great list of community extensions for mobile, Windows, and Mac that you can explore on the Adobe AIR Developer Center’s  Native extensions for Adobe AIR page.

Once you’ve downloaded your native extension, you’ll need to add it to your Flash Professional CS6 project.

Adding native extensions to a Flash Professional CS6 project

Adobe AIR Native Extensions can work with AIR projects for Windows, Mac, iOS, or Android.  You can integrate a native extension into your Flash Professional CS6 project with a few simple steps:

  1. Launch Flash Professional CS6, and create a new project of the type AIR, AIR for Android, or AIR for iOS (see Figure 1).
Figure 1. Creating a new AIR project.
Figure 1. Creating a new AIR project.
  1. Choose File > Publish Settings.
  2. Click the wrench icon next to Script for ActionScript Settings (see Figure 2).
Figure 2. Selecting ActionScript Settings.
Figure 2. Selecting ActionScript Settings.
  1. Click the Library Path tab.
  2. Click the Browse To Native Extension (ANE) File button (see Figure 3).
Figure 3. Selecting a Native Extension (ANE) File.
Figure 3. Selecting a Native Extension (ANE) File.
  1. Navigate to the directory that contains your native extension and select the ANE file.
  2. Click OK.

Implementing ActionScript code

Native extensions include ActionScript APIs for interacting with native code.  Once the ANE file has been included, these APIs will be available for code completion within Flash Professional.  You can find step-by-step tutorials on implementing the iAd, GameCenter, and AdMob extensions at the Adobe AIR Developer Center.

When you’re done, just choose File > Publish and deploy your application to your target platform!

Where to go from here

Now that you’re familiar with the basics of using native extensions in Flash Professional CS6, you can use the following links to explore the growing list of native extensions available for the AIR platform or learn how to start creating your own:

  • Adobe AIR Native Extensions List
  • Building a native extension for iOS and Android
  • Using the GameCenter Adobe AIR native extension for iOS
  • Using the iAd Adobe AIR native extension for iOS
  • Facebook, Twitter and Mail Adobe AIR Native Extension
  • App Rating Adobe AIR Native Extension
  • iOS In-App Purchase Adobe AIR Native Extension
  • Android In-App Purchase Adobe AIR Native Extension
  • iAd Adobe AIR iOS Native Extension
  • GameCenter iOS Adobe AIR Native Extension
  • AdMob for Android Adobe AIR Native Extension

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License.

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement