Adding Blackberry (BB10) Support for FlashBuilder 4.7

If you haven’t heard, BB10 is coming out at the end of the month. In my estimation, this will be far bigger sales event than any new device launch we’ve seen in recent times (Kindle, Nook, Windows 8), so I’m really excited to get my apps on there, and you should be too!

The first step is prepping FlashBuilder 4.7 to export to BB10. This is a bit confusing, as I expected it to just work like it did in 4.6, but there’s a couple additional steps.

Adding FlashBuilder Support

This is explained fairly well in the docs, but the link is extremely buried, for your covnenience, here she be:
https://developer.blackberry.com/air/documentation/bb10/install_bbtos_sdk_fb47.html#mah1354047470595

Essentially you just:

  • Run the SDK installer like normal
    NOTE: Do NOT check the option for Flash Builder support during install, it will destroy your FB 4.7 workspace and prevent it from launching, or at least it did to me…
  • Then, in FlashBuilder: Install New Software > Available Software > Blackberry Support.
    Install it!

With that you are now kicking out builds to your brand new BB10 dev device. They’ll install, but they probably won’t run…

Force AIR 3.1

You can use any recent AIR SDK, but you need to add some options to force it to target 3.1

  • Add compiler flag -swf-version=14
  • under ActionScript Build Packaging > BlackBerry > > Advanced > Extra packaging, enter -forceAirVersion 3.1 

Add Native Extensions

The final step is to add all the ANE’s provided to us by BlackBerry, giving access to a wide range of device specific features.

  • Under Build Settings > Native Extensions, add a folder:
    c:\Program Files (x86)\Research In Motion\blackberry-tablet-sdk-3.0.0\frameworks\libs\qnx\ane\

This gives you access to all the API’s listed here:
With that you are off to the races, go kick some ass!

Written by

4 Comments to “Adding Blackberry (BB10) Support for FlashBuilder 4.7”

  1. Jarek says:

    Sooo… no Stage3D with swf-version 14 and an old air?

    • shawn says:

      Ya, it’s a major bummer, need to use CPU renderer, or GPU render mode. RIM has promised that Stage3D is coming, but no commitments to timeline. The optimist in me says mid-2013.

  2. Justin says:

    Any word on publishing BB10 or Playbook apps from Flash Pro instead of just Flash Builder? Somewhere online I found what appears to be a way of taking a swf and making some files to get it to play on the playbook but it seemed to be a rather lengthy process.

    Congrats on last year’s success.

  3. Jacob says:

    Yeah, it’s a bummer on AIR support. I’m excited for BB10 too, but I’m not going to build a stage3d-based app on all other major platforms and then have to spend a bunch to time just to port to BB10. AIR 3.1 is just simply outdated at this point. If they allowed captive runtime it would solve this quickly-er.

Leave a Reply

Message