Lee Brimelow just posted a great tutorial illustrating how easy it is to make multitouch applications with both Flash CS5, AIR 2.0, and Flash 10.1. But what it you’re a Flex guy and don’t play well with (or have) Flash? And what if you don’t have a touch interface that supports gesutures? Well if you have an iPhone or iPod touch here’s a workaround that will allow you to test your gesture based air apps.
Here’s what you need:
Apple iPhone/Ipod TouchiTap ($3.99 iTunes App store) There are plenty of mouse apps out there but this one was the only one I could find that supports gestures which is indeed different than multitouch. Just having multitouch won’t do it.Adobe FlexAir 2.0 BetaAir 2.0 SDK
As I said, in my example we’re using Flex. Open it up and create a new AIR project. Now since we’re doing this all in Actionscript we’re going to create a new Actionscript file in our project and give it the same name as the project/MXML file that was created as our default application file. Now, right click this new Actionscript file and make it the the default application and delete your default MXML file. Now you’re ready to code.
The code from Lee’s Flash version ported over pretty cleanly so I’ll only outline the differences, please see Lee’s tutorial for the breakdown of how the gesture listeners work. The main difference in Lee’s version and mine are the squares and the the way we setup the stage parameters.
The reference to stage is a bit different since Flex doesn’t pass the NativeWindow class to AIR automatically the way it does with Flash. If you don’t use NativeWindow your app will be blank and you won’t see anything. We set up the window this way.
1
2
3
4
5
6
7
//Set up fullscreen, need Native Window for Air using Flex Actionscript Project var mainWindow : NativeWindow = new NativeWindow(new NativeWindowInitOptions());
mainWindow.activate();
mainWindow.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
mainWindow.stage.scaleMode = StageScaleMode.NO_SCALE;
mainWindow.stage.align = StageAlign.TOP_LEFT;
The squares are simple, a quick drawing API snippet to draw them instead of using a MovieClip from the library in Flash.
1
2
3
4
5
6
7
//Draw a blue square with white strokevar square:Sprite = new Sprite();
square.graphics.lineStyle(8, 0xFFFFFF, 1, false, CapsStyle.SQUARE, JointStyle.MITER);
square.graphics.beginFill(0x0000FF, .5);
square.graphics.drawRect(0,0,200,200);
square.graphics.endFill();
Now when your app is complete, you’ll want to test it. Load up the iTap app on your iPhone and free server software on your PC/Mac to use the multi-touch functionality like my son Bob is demonstrating at the top of this post (he’s pretty sharp for 10, already know how to compile apps in Flex.)
With AIR for mobile on the horizon for touch devices it’s pretty exciting how Adobe has embraced multitouch and gestures. Thanks to Lee for the inspiration and code for poor-man’s touch gestures testing.
Right in time for the holiday season, Chumby Industries released the Chumby 1, a newer and cheaper version of the original Chumby that came out a few years back. Like it’s predecessor, it offers a large amount of free widget content including access to web based services folks use on regular basis: Facebook, Pandora, and Gmail to name a few. So why does the new Chumby offer a glimmer of light to what could be the start of some mass appeal? Because (in my opinion) they did a few of the things I pointed out in my post from two years ago aptly named “The Chumby Dilemma”
First they made it cheaper. The original used to be $180 bucks, this new one is $120 shipped. I actually bought two of them on holiday promotion for $99. They’re right there on the price threshold now, $99-$120 is more than reasonable for all the great things the Chumby does.
Second, they changed the design of the enclosure making it seem like it belongs in rooms other than the bedroom (was never a fan of the pillowish enclosure). They put a battery case in it (battery sold separately) so you could take it around the house. Basically, they made it feel like a hell of a lot more than an internet alarm clock, which it is.
So while I’m sure this cuts into their margins a bit, they made the product more enticing and salable by changing the easiest things. The brilliance is truly in the software and Flash based channels and I hope they focus and continue to grow that. So go buy one, it’s a fantastic device that has a special place set aside on my kitchen counter.
By the way, people are doing some really cool things in hacking the Chumby. You can see a list of all sorts of mods and hacks here on this wiki page. A favorite is this one recently featured on Hackaday:
So now that the iPad craziness has blown over, want to comment on yet another disruptive product from Apple. This time we’re in a “tween” segment, or somewhere between your desktop/laptop, your mobile, your e-reader…. Wow, a lot of devices to carry right? And where does the iPad fit, or for that matter, where do any of your current devices fit in relationship to it?
There is a lot going on these days with companies abstracting the traditional PC experience away from devices to create targeted customer user experiences. Sometimes this is due to hardware restrictions in smaller underpowered devices (phones, e-readers), sometime it’s due to creating more portable entertainments platforms for folks to consume content with (netbooks, litl). The problem is, each of these devices meet only some of a customer’s needs at a premium price. Some customers don’t want a to use a PC for glance content, but may prefer the litl for it’s large format, channel content delivery. Some customers won’t read a book or watch a movie on their iPhone, but the iPad might be perfect for that. Some folks want to run Word or Blog, but prefer a keyboard rather than a tocuhscreen. So you have all these different devices that do these things at a different efficiency level. To many devices and too many segments/needs to serve.
In essence, it feels like the iPad will be a niche product, but falls far short of a convergence device. The good thing about it is that it will force the carriers to adopt more affordable data plans. It will also force the lower end devices like the Nook and the Kindle to become cheaper. Frankly, both these devices look overpriced compared to what you get for your $499 iPad. Either way it still feels like we’re in the days where you needed to carry your laptop, pda, mp3 player, and camera. Too many to devices to serve all your needs.
With Nokia jumping into Maemo for their future device offerings, there is certainly a lot at stake in terms of closing the UX gap between their competitors as well as enfranchising developers with an open and performance-able platform they can grow their Ovi store offerings on. And with the Nokia N900, they do not disappoint. The device is a huge leap forward in terms of usability and a pleasant device to use and develop for. Nokia used to throw around the term “mobile computer” when describing offerings like the N95 and the N97. This is the first device where this really seems to hold true. The update and firmware repositories in terms of both available content and frequency of updates has been superb. They are truly nimble in this way for the first time, a trend that must continue as they go forward.
One thing that sticks out is that this particular device still caters to the hacker, or maybe what was the early adpoter smart-phone users of the mid-2000’s. The folks who were okay with hacking, installing, tweaking etc… If they mature this platform with this device and bridge the learnings onto a future (and a little thinner ) mass-market offering, they have really positioned themselves well in the future. Bravo Nokia, great phone!
I was cleaning out some of my old files from an archived hard-drive which is long gone with the computer it came with (original Apple G4 tower I think). This was in a folder called “Skunk-work” and was one of the first projects that I really started to get the hang of Actionscript. Coolest part is that it’s a throw back to my original computing experiences with my Commodore 64 and AT&T 386 PC.
I tell my 9 year old son how we used to use land-lines to dial in (we haven’t had one for half his life, no concept of the home phone number but he has had his own email address for a few years). We wouldn’t call in to an ISP to access the internet, but to a specific computer in someones house. We’d actually war-dial neighboring towns to discover these Bulletin Board Systems (BBS’) and play “games” that we’re all text and ASCII based. He’s both interested and incredulous at this concept, and I explain that we would spend just as much time (maybe more with the slow connection) then on the computer as we do now when there really wasn’t that much to do. I keep waiting for him to tell me how lame it must of been, but I think he gets it and would have been as interested as I was back then. It was all about the pursuit and it still is today even with a million times the resources.
Wonder what things will be like for his kids in 20 years?
So your a mobile software developer/publisher working in Flash Lite and want to go to Adobe MAX, the leading conference in rich internet applications, creative and design solutions, and killer parties. But you live really far away and need a little help and incentive to get there. Well guess what? If you submit your mobile application you have a chance to be selected as a finalist and get a free conference pass!
I’m an industry judge for mobile and devices and expect to see some high-quality offerings like I have and years past. Please enter your app, all entries will be considered so don’t hold back, deadline is July 31st. I’ve heard on the Twitter-verse there are going to some game-changing announcements concerning mobile so this is not one to miss.
I’ve been selected as a Forum Nokia Champion. To paraphrase “Forum Nokia Champions earn recognition for having outstanding expertise in certain Forum Nokia-related areas, participating in various online and offline activities, and sharing and showcasing their knowledge with other Forum Nokia members”. This is a tremendous honor and I am pleased to be associated with such an elite program.
With the launch of the Ovi publishing platform coming soon, I expect Nokia to make big moves in retaining their status as leaders and innovators in mobile. If you’re a publisher, be sure and sign up today.
I recorded an onsite podcast from the 360|iDev conference with some great folks from the Flash Lite and mobile community. Emmanuelle Cipollini from Barefoot Software, James Eberhardt of Echo Mobile, and Dave Yang of swfoo joined me for a quick talk concerning this conference, Flash, and transitioning from Flash to the iPhone.
I attended BU’s MBA Symposium this past Saturday. It was a well organized event with some great speakers and break-outs. One that stuck out was Dr. Gary Hamel (beaming in from the silicon valley, very big-brotherish). It was an inspiring speech to say the least but here are some of the points that really stood out for me:
Accountability should go up the org chart as well as down: Hamel described companies where reviews and complaints were placed in tickets and opened up publicly for all the company to see. Management had to respond to these tickets and close them other wise it affected their compensation. Talk about flipping management on it’s head.
Leadership is a privilege, not a right: In the said company, there were no titles or hierarchy. No one was given a leadership based on tenure. Instead teams would agree and ask someone to be a leader based on their demonstrated abilities. A good indicator if someone was in a leadership role was if people responded to meeting invites.
There were just a few of an hour-long brilliant speech. You can read Dr Hamel’s article at the Wall Street Journal.
Some great news. I’ve recently been designated as an Adobe Community Expert for Mobile and Devices. This is a real motivator and after holding the torch for Flash Lite for a number years and it really demonstrates Adobe’s willingness to reward and recognize folks who contribute to the community. There are some great perks that go along with this and I’d encourage any lurkers out there to contribute since it does reap rewards at times. One easy way to get started is go register yourself in the Adobe Groups section and look for stuff in your area. One thing to note, the community aspect of Adobe’s offerings is much improved thanks to the efforts of Rachel Luxemburg.
There’s some exciting things going on with Flash Lite these days at Mobile World Congress, I’ll be covering them with some future posts. But in general look for some spirited content coming from me focusing specifically on Flash Lite and Open Screen Project in the near future.