02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

New Features

StageWebView - you can get a browser in your flash application. Great solution for maps, Facebook connect. remote connect and more., stageText, stageVideo, Captive run time - developers now have more flexibility with there app packaging options and can automatically package AIR 3 with their Android, iOS app into a single installation file that includes the app and a bundled version of the AIR runtime. Last but not least Chris will look into ANEs and explain what they are and how to work with them. The idea behind ANE is to use native code to take advantage of the same platform and device specific native capabilities and APIs available to native apps with easy integration into AIR applications.

Video Transcript

00:00So I mentioned some more. So here's some of the cool new things
00:04that have percolated in. So there's a thing called the stage web view.
00:08And basically it allows you to have a browser within your
00:12Flash app. You can do this, you know, on the desktop, but this is really
00:16useful on the mobile side. I use it for a lot of my mapping stuff.
00:21So if you read my blog, you can see I have a few posts about actually using
00:25the stage web view to display Google Maps
00:29and in the context of my Flash application. But it's also a great solution,
00:33one of the better solutions, for saying to do something like Facebook Connect.
00:37Handling some of the OAuth authorization that you might have
00:41for Facebook, or to pull in some Twitter immigration, where there's
00:45a security token handshake, this is a great way to do it.
00:49It's also a great way of handling some really dynamic remote content.
00:53So you can set up very mobile web friendly pages
00:57and pull them in through a stage web view.
01:01So, definitely worth checking out.
01:05It's also a great way. Flash doesn't always have the best text layout stuff.
01:09And I have some friends who will use the stage web view
01:13actually looking at local files using WebKit
01:17as their text rendering engine for their content,
01:21rather than trying to use Flash and its display list to render out
01:25the content. So, you know, start thinking outside
01:29the box. Another new thing
01:33is stage text. So, let's think of text.
01:37Released in entry one, we now have the ability to have access
01:41to the native text of the device and to more
01:45than the keyboard. Now, we've always been able to pull up the soft keyboard,
01:49but we always pull up just the face keyboard.
01:53We've used iOS for a little bit and some better Android apps.
01:57There are actually multiple keyboards
02:01available to the developer. And it's been a request on the airside for a long time
02:05that, you know, there's a numeric only keyboard
02:09in iOS and Android. So, if I'm just trying to type in a mobile number,
02:13you can just have the numbers. Yes, I can put, you know,
02:17a little question mark, one, two, three, two, and a five, and then it brings
02:21the number of nodes. But if you ever, you know, pulled up the dialer, that's a number only
02:25dialer. Number only keyboard.
02:29There are also other custom keyboards for emails and web addresses
02:33where various things are tuned to support
02:37the input like that in a lot of friendly fashion. You know, usually there's a button
02:41to say, you know, dot com, you hold it, and you know, dot org, edu, dot nl,
02:45nl pops up, those sorts of things. Making it a much faster,
02:49easier input method. So, now that we have
02:54this stage text capability, we can actually start to get a little neato.
02:58Which is nice. And we're starting to get, you know, I said, we don't have all the widgets, but we're starting to get a little
03:02closer inside. Another area is
03:09stage video. So, a lot of projects wind up with you.
03:13None of my applications, I've tried to really play to the video side, but basically
03:17it allows for playing below the display list
03:21for the video to render. And it will have
03:25basically the decoding of the handle by the GPU.
03:29If you're gonna get into stage video, there are a lot of
03:33caveats on the encoding of the video, the delivery,
03:37the length, and those sorts of things. So, if you're gonna be
03:41looking at building something in this arena, you know, spend some additional time
03:45doing some homework and testing and reading up on it. I am not
03:49an expert in this one feature, other than I know
03:53there will be dragons ahead in that area. So,
03:57I offer that to you as you move forward. Back before we started the talk,
04:03we were talking about, you know, do people know the difference on iOS
04:07if it's running there for Android? And the answer is other than the large file size,
04:11probably they don't. I mean, Machidium was like the
04:15number one, you know, how did iPad app for
04:19Android that we, you know, highlighted on the app store. That's an Air for Android
04:23Air for iOS application.
04:27So, you know, it was a nice validation of what's possible with the platform.
04:31Now, we have the capability with Android
04:35as well to bundle the Air runtime within our application.
04:39So, one of the real big marks against
04:43Air for Android was it was a double install process.
04:47Just like it is on the desktop. So, you know, you pull a brand new Mac
04:51or a brand new PC out of the box, and you go to install
04:55something like TweetDeck, or Lita is gonna say,
04:59oh, I need the Air runtime. Hang on, let me go get it.
05:03That may not be the best user experience that you are deploying at once.
05:07Now, you can bundle the runtime
05:11within your application. Now, your file is gonna take a big file size
05:15here. So, it's gonna grow. Now, to do this
05:19with Flash Professional, you're gonna have to, unfortunately, use the command line.
05:23It's not directly supported within the program at this time.
05:27It is overall the Flash Builder 4.6, but
05:31not available on the Flash. So, if you're a Flash developer, and you
05:35want this capability, you have to do a quick Google and get real
05:39familiar with the command line compilation of an Air application.
05:43If you've read that point,
05:47and this is of interest, I would also strongly recommend that
05:51you pick up Ant, which is a
05:55sort of a scripting
05:59shell automated build process. It's, you know, yet another
06:03pool if this stands for. It will probably make your life
06:08much happier as you go through the whole iterative test and build process.
06:12So, but it means, you know,
06:16you build a nice app, and you're not gonna have to necessarily say, ah, you know,
06:20you don't have to get the review, oh, it's written in air, oh, the sound sucks.
06:24It may be the most awesome app in the world, but, you know, by taking
06:28that one real opportunity to dig your way, that's good for you.
06:34So, another advantage that we now have to us are these
06:38things called Air Native Extensions.
06:43So, if you know Native Code,
06:47whether it be Objective-C, C on the desktop,
06:51Java on Android, got a friend,
06:55write your own, there are several being published,
06:59you can use Native Code to access platform
07:03and design device specific capabilities. For example,
07:07that I always thought was funny, on Air
07:11for mobile, I do not have access to the
07:15vibrator on the phone. You know, we've all had our phones vibrate like this
07:19out of the way. Having Flashlight, we didn't have it there.
07:23Now there's an A and E that Adobe's put out called Vibration.
07:27I can drop that in, it's, let's go to Swift.
07:31You can pull these in into Flash Professional. It takes a few more
07:35steps, not quite as integrated as Flash Builder, and now
07:39access to that type of things. I'm talking about sensors.
07:44This is a gyroscope of many devices. Out of the box, I don't have access
07:48to the gyroscope, but an A and E can have access to the gyroscope.
07:52And there are other ones coming. There is a
07:56number like Marketplace, but there is a listing on Adobe.com
08:00of various A and E's that are being published.
08:04I'm actually inquiring there was supposed to be a map one that was being
08:08worked on. Unfortunately, it was being managed by one of the evangelist
08:12students, let go recently. So, I do not know
08:16the status of that thing.

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!