Best practices
a quick run down over important factors to think about while developing for mobile applications. Topics covered: graphics, GPU Acceleration, Text, Display Objects, Freeing resources and book recommendations.
Video Transcript
00:00Let's skip that. Some quick development guidelines throughout this
00:04stuff. Consider bitmaps over vectors.
00:08Keeping them as small as possible. Do use vectors to keep them
00:12as simple as possible. Test out any animations with
00:16a quality of stage. You may forget that you can change the stage quality
00:20and the rendering capability. That might help you. Filters, blends,
00:24transparency, all those things. Those really impact
00:28performance. Your mobile phone is about as powerful
00:32as your computer was seven years ago. So think about running
00:36your application on the original iMac. And they'll start
00:40to get you a sense of where you are. I can mention we have
00:44some help with the GPU. So if you say your rendering
00:48is a bit of a black magic about all this, sometimes it is.
00:52Sometimes it is better. You do need to things
00:56that your cache's bitmap is true.
01:00As well as cache's bitmap.
01:04There's some examples of playing around with that.
01:08So if you are in more of a game format, definitely something to play around with.
01:12Terry Patton out of Australia, who's a really good
01:16game developer, I mean, has written some stuff about this as well.
01:20Flying through some text. Avoid TLF.
01:24Okay, backgrounds are always good. Check out your
01:28analyzing. Don't update your text as much as possible.
01:32A lot of times I see some sloppy code. Look at using your pen text
01:36versus just text plus equals. A lot faster
01:40text things. You need to consider
01:44both orientations. Talk about that.
01:48We also need to talk about display objects.
01:56So don't necessarily
02:02always use a movie clip.
02:06If it's interactive in the timeline, use a sprite.
02:10If the animation is a movie clip. If they're not interactive, use a shape.
02:14We have all this capability. They definitely, as you can see, have
02:18impact on memory. And memory is something you need to consider though.
02:22So an object can run 16 bytes, a movie clip is 4.16.
02:26That can add up really fast.
02:30Think about what's going on here. Whether or not to turn the alpha on,
02:34remove the child when it's visible. Clean up your
02:38event listings. You really have to be a much cleaner
02:42and more careful coder in the mobile space. Because your app will blow up
02:46a lot faster. Wrapping up, there's some great
02:50resources out there. So there's developing Android applications
02:54by Romic Rosary. I was a checker viewer on that one.
02:58Really good book. Slightly older version of Air, but still a great foundation.
03:02Joseph's book, Android development, or
03:06Android cookbook, is a half a month old. Really great
03:10book. There's also, Joseph has another one of what's new in Air 3
03:14that's going to be a free ebook from O'Reilly published next
03:18month. Some great stuff on the Adobe development connection.
03:22And with that, I thank you.
03:26So, open up a little bit of questions, or if we want to hand it over to the next speaker
03:30in your call. Again, thanks.
