• Archive
  • RSS
  • Ask me anything

E's musings on life, tech and whatnot

What the heck are AIR Native Extensions?

The quick explanation

With we released of AIR 3.0 we added this awesome new feature called native extensions. Trust me these are cool. Essentially, a native extension will let you extend the functionality of your AIR app so it can access the native capabilities of a device. So, by adding some native code you can:

  • make a mobile device vibrate.
  • change the channel on a TV
  • read pressure sensitivity data from a pen table

The more technical explanation

A native extension is a combination of:

  • ActionScript classes.
  • Native code. Native code is defined here as code that executes outside the runtime. For example, code that you write in C is native code.

Here’s why you might want to write your own extension:

  • A native code implementation provides access to device-specific features. These device-specific features are not available in the built-in ActionScript classes, and are not possible to implement using application-specific ActionScript classes. The native code implementation can provide such functionality because it has access to device-specific hardware and software.
  • A native code implementation can sometimes be faster than an implementation that uses only ActionScript.
  • A native code implementation allows you to reuse existing code.

When you have finished your ActionScript and native implementations, you package your extension. Then, an AIR application developer can use the package to call your extension’s ActionScript APIs to execute device-specific functionality. The extension runs in the same process as the AIR application.

An even more technical explanation

Here’s an architectural diagram of an extension:

Where to get extensions

Because you can package and reuse extensions, you don’t need to write one yourself. You can use someone else’s. We’ve even set up a handy page where you can find some extensions to get you started. These extension were contributed by both our in-house dev team and our community. Take a look.

If you’re interested in creating your own extension, we’ve created a whole set of content just for you. Check out the Native extensions doc here.

    • #Adobe AIR
    • #tech
    • #as3
    • #actionscript
    • #RIA
    • #extensions
  • 1 year ago
  • 68
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

68 Notes/ Hide

  1. cora-green reblogged this from e-musings
  2. samsung-galaxy-tab-10-1-prix reblogged this from e-musings
  3. wie-werde-ich-hundetrainer reblogged this from e-musings
  4. welche-lebensmittel-senken-den reblogged this from e-musings
  5. shalandavillage40 reblogged this from e-musings
  6. kendrasite98 reblogged this from e-musings
  7. cna-certification-a reblogged this from e-musings
  8. okapitanmoikapitan likes this
  9. australblackbird reblogged this from e-musings
  10. e-musings posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

Avatar I'm a middle aged, middle manager at a major tech company. I'm a gamer, a sculptor and loving husband. I'm occasionally insightful, sometimes pedantic but rarely pretentious. Oh, and I've been a professional writer for years so I know a lot of words.

Me, Elsewhere

  • e_musings on Delicious
  • Linkedin Profile

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile
Effector Theme by Pixel Union