Happy Halloween

Get Adobe Flash player

I thought I’d create some spooky ghosts using Starling to scare my WeeMee with. Enjoy Halloween everyone!

Starling Experiment

I’ve been playing with the Starling framework and so far the performance on desktop has been pretty good. Here’s a little experiment I bashed together.

Get Adobe Flash player

Just click on the little rotating sprite then watch all hell break loose. Oh and once things get a bit hectic, run your mouse over them to create some nice effects.

Vlad’s Vampire Bats

The Flash platform has had some success with children’s interactive books and here’s another one that’s arrived just in time for Halloween. Vlad’s Vampire Bats tells the story of Vlad; a lonely vampire with a problem: everything he touches turns into a bat. You’ll be taken through 17 screens of animated fun, lighting candles with your finger, exploring Vlad’s castle, and of course, turning things into bats!

Interestingly Vlad’s Vampire Bats was created by a design team who had no prior programming experience. The guys at Frosby Designs learned ActionScript 3 from scratch in order to put the app together, which is a great testament to the strengths of the Flash platform.

Sounds like fun but I’m obviously a little too old for this app so I decided to see how wee Freddy, my one year-old nephew, would respond to it. Well you’ll be pleased to know he laughed his little head off and constantly slapped my iPad’s screen with delight so I’m guessing Frosby got this one just about spot on. Great stuff!

Vlad’s Vampire Bats is available for iPad, iPhone and Android.

It’s Not All About 3D You Know

Yup, that’s right. With all this talk of Stage 3D lately you could be forgiven for thinking that Adobe has given up on simple 2D games. However that couldn’t be further from the truth. It may not be obvious from its name, but the Stage 3D APIs are also perfect for rendering high-performance 2D graphics.

What? You don’t believe me? We’ll why not take a look at the Starling framework. It’s an ActionScript 3 API that harnesses the power of the GPU to produce 2D rendering performance never before seen in the Flash Player. I know what you’re thinking; it all sounds pretty complicated and scary but it really isn’t. Starling’s API closely follows Flash’s native display list classes, allowing you to quickly get to grips with it. You’ll be moving thousands of sprites around the screen and dazzling friends with impressive particle effects in no time all all.

What’s more, Starling is a direct port of the Sparrow Framework, which is a native iOS library. This is great news as it means you’ll have the potential to write blazing fast mobile games too! After all, Sparrow has proven itself in the field and there’s no real reason why Starling won’t perform similarly once ready for iOS. And while many of you will probably be eager to get your teeth into 3D, don’t forget that simple 2D games are not only cost effective but are typically more accessible. Just take a look at Angry Birds or Tiny Wings.

It’s still early days for GPU acceleration in Flash but I’d encourage you to start experimenting. And Starling isn’t the only 2D framework; there’s also ND2D, which is looking similarly impressive.

Unreal Engine 3 and Alchemy

The announcement of Unreal Engine 3 for Flash Player 11 was huge and goes to show just how powerful Stage 3D is. If you’re in any doubt about the potential of Flash Player 11 then just take a look at the video below, showing a technical demonstration of Unreal Tournament 3 running in the browser.

But the hardware acceleration of Stage 3D isn’t the only thing worth getting excited about. You ever thought about how they actually ported Unreal Engine’s source code to Flash? After all, re-writing just over a million lines of code in ActionScript 3 just isn’t practical. Well the conversion was achieved using Adobe Alchemy, which enables the conversion of C and C++ code into high-performance ActionScript bytecode. If you want to know more then take a look at this great insight into Alchemy presented at Adobe MAX.

So there you have it. Flash is now capable of delivering a high-quality console gaming experience directly within the browser. And if you’re considering writing 3D games content for the platform then you really can’t get any better than the Unreal Engine.

I’ll leave you with a quote from Epic Games’ press release:

UE3 is constantly evolving, with new breakthroughs, technologies and optimizations for multiple platforms. Flash Player 11, with its hardware accelerated, programmable graphics pipeline, is now capable of running triple-A gaming content authored for high-end platforms using the industry’s latest tools and technologies.

Learn AS3 for Free

So I think you’ll agree that ActionScript has come a long way since its humble beginnings as a simple scripting language for controlling timeline animations. However, while each new version of the language has been accepted with open arms by developers, creatives have been less willing to embrace it. This is a terrible shame, because it’s the incredible work by all you animators and illustrators out there that put Flash on the map in the first place.

So if you’re still tinkering with ActionScript 2, or even 1 then you might be interested in Hoss Gifford’s free ActionScript 3 training course. It’s taking place in Glasgow on the 24th and 25th of November and is aimed squarely at people who currently throw smatterings of ActionScript onto the timeline.

I had the pleasure of working with Hoss a few years back and he’s one of those rare breed of people who has mastered Flash from both a programming and creative perspective. He’s also an exceptional communicator who’s spoken at various conferences all over the world. What I’m trying to say is this. If anyone can teach ActionScript 3 to non-programmers, it’s Hoss. Do yourself a favour and sign-up for it. And hurry, there’s limited space.

Oh and did I mention that he’ll have you write a game and stick it on iPad, iPhone and Android by the end of the second day? Exciting eh!

And yes, I did say it was free.

Inferno for Xbox 360

My buddy Alex is probably the best programmer in the world! He has a particular passion for all languages containing the letter ‘C’ and he’s so good that he bashes games together during his lunch breaks! And here’s one of them. Inferno is Alex’s first Xbox 360 game, which you can pick up from the Xbox Live Indie section. It’s a port of an old 8-bit game so if you like your retro arcade stuff then it should be right up your street.

Oh and if you’re wondering what this post has got to do with Flash then the answer is pretty much nothing. But then again I did have a conversation with Alex the other day and he reckons that Flash is the perfect platform for bashing together Android apps. In fact, he’s considering porting Inferno to Android using it. So there you go.

Steve Jobs 1955-2011

I’ll be honest, Steve Jobs’ criticism of Flash and the subsequent banning of apps built using Adobe’s Packager for iPhone enraged me and for quite some time turned me away from Apple products. Such was his reputation and authority that his words were able to polarise even those within the Flash community, with some jumping ship the moment he declared the technology as good as dead. In fact, he did more to diminish Flash’s presence as a web technology than HTML5 ever could on its own!

I say this only to highlight the respect he’d earned and rightfully so. When Steve Jobs spoke, people listened. While others copied, Steve Jobs innovated. The iPhone was a paradigm shift and it couldn’t have happened without him. He had that rare ability of being able to take the complex and make it simple, so that almost anyone could understand and use it.

Even after several years of playing catch-up, it’s clear that the rest of the industry still doesn’t really get it. Manufacturers churn out device after device, desperately trying to recreate Apple’s success story. These devices might very well resemble iPhones and iPads. They may even have superior technical specifications. But rarely do they ever come close. Steve Jobs understood that it wasn’t just about the hardware, but the user experience. That was where the real magic happened.

So what now for Apple? Will they continue to grow and innovate or will they slide back into the abyss that Jobs saved them from? It’s hard to tell what the long term holds for them, but in the short term I think Steve Jobs ensured that the right people were in place to continue his vision. And if you’re in any doubt about that vision just think back to the clunky handsets we were all using before the iPhone arrived. Without Steve Jobs kick-starting the industry, we’d probably all still be obliviously struggling with them right now, unaware that a brighter, better, and more entertaining future was a possibility.

Packt Cookbook Giveaway

I’m giving away two copies of the excellent Flash Development for Android Cookbook by Joseph Labrecque, and you’ll be delighted to know that entering the giveaway requires almost no effort at all!

To whet your appetite, here’s a little information about the book from the Packt Publishing website:

  • The quickest way to solve your problems with building Flash applications for Android
  • Contains a variety of recipes to demonstrate mobile Android concepts and provide a solid foundation for your ideas to grow
  • Learn from a practical set of examples how to take advantage of multitouch, geolocation, the accelerometer, and more
  • Optimize and configure your application for worldwide distribution through the Android Market
  • Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

So how do you go about getting your hands on a copy? Simple. Just head over to the book’s official page then add a comment to this post letting me know one feature of the book that makes you want to own it. The two lucky winners will each receive an eBook version of the cookbook.

The contest will close on October 7th at 11:59 p.m. BST. Winners will be contacted by email, so please remember to use your real email address when you add your comment.

Good luck!

The competition is now closed and comments have been disabled. The winners will be contacted.

Overlaying AIR SDK for Flash Professional CS5.5

If you’re using Flash Professional CS5.5 (CS6 owners should follow these steps) and would like to take advantage of the AIR 3.5 SDK then perform the following steps for your operating system of choice.

Microsoft Windows

  1. Ensure that Flash Professional CS5.5 is closed.
  2. Download the AIR 3.5 SDK for Windows archive from the Adobe website.
  3. Copy the archive to your desktop and extract it to a folder.
    After unzipping you should be left with a folder named AdobeAIRSDK on your desktop. This folder will contain the AIR SDK.
  4. Using Windows Explorer, browse to Flash Professional’s root folder: C:\Program Files (x86)\Adobe\Adobe Flash CS5.5.
    On 32-bit versions of Windows the Program Files (x86) folder is named Program Files
  5. Find the AIR2.6 folder and rename it to AIR2.6-old.
  6. Copy the AdobeAIRSDK folder from the desktop to Flash Professional’s root folder and rename it to AIR2.6.
  7. Using Windows Explorer, browse to frameworks\libs\air within your newly renamed AIR2.6 folder.
  8. From this folder, copy airglobal.swc and paste it over the existing version of the file at C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\AIR2.6
  9. Using Windows Explorer, browse to C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Players and open AiriPhone.xml using Notepad.
  10. Change the version attribute of the <player> tag to 18 and save the file:
    <?xml version="1.0" encoding="UTF-8"?>
    <players>
      <player id="PFI1_0" version="18" asversion="3" minasversion="3">
    
  11. Staying within the same folder, perform the above step for AdobeAIR2_6.xml and Android.xml.

Mac OS X

  1. Ensure that Flash Professional CS5.5 is closed.
  2. Download the AIR 3.5 SDK for Mac OS X archive from the Adobe website.
  3. Copy the archive to your desktop and extract it to a folder.
    You should be left with a folder named AdobeAIRSDK on your desktop. This folder will contain the AIR SDK.
  4. Using Finder, browse to Flash Professional’s root folder: Applications/Adobe Flash CS5.5
  5. Find the AIR2.6 folder and rename it to AIR2.6-old.
  6. Copy the AdobeAIRSDK folder from the desktop to Flash Professional’s root folder and rename it to AIR2.6.
  7. Using Finder, browse to frameworks/libs/air within your newly renamed AIR2.6 folder.
  8. From this folder, copy airglobal.swc and paste it over the existing version of the file at Applications/Adobe Flash CS5.5/Common/Configuration/ActionScript 3.0/AIR2.6
  9. Using Finder, browse to Applications/Adobe Flash CS5.5/Common/Configuration/Players and open AiriPhone.xml using TextEdit.
  10. Change the version attribute of the <player> tag to 18 and save the file:
    <?xml version="1.0" encoding="UTF-8"?>
    <players>
      <player id="PFI1_0" version="18" asversion="3" minasversion="3">
    
  11. Staying within the same folder, perform the above step for AdobeAIR2_6.xml and Android.xml.

Now whenever you create an AIR application it will be set to use the AIR 3.5 SDK.

If you encounter any problems then you may want to refer to Daniel Albu’s excellent tutorial on the ActiveTuts+ network. Alternatively consider taking a look at the following video by Brent Arnold. The video covers AIR 3.0 but the steps are the same.