Actionscript & PHP Development

Building apps using Adobe Air, Actionscript 3 and PHP

By Richard Mackenzie

Embedding HTML5 into a native IOS app using StageWebView class.

HTML5Here I will run you through how to wrap your HTML5 site or app inside a native IOS application using the Stage Web View class.

A great use for this is building a hybrid app, half HTML 5 and half native, so if you are developing an IOS application for multiple platforms you can re use the HTML 5 application code for each app you publish without having to re write it each time.

Read More

By Richard Mackenzie

Build native RSS/XML Reader app for your IOS/Android device

RSS for IOSThis tutorial will help you build an IOS application using Adobe AIR that can read an RSS feed from your site. As I am sure you know already an RSS feed is simply an XML file.

Flash works great with XML, so first step is to load the URL using the URL loader class.

Read More

By Richard Mackenzie

Uploading Camera UI bitmap data to your server with PHP

Air iosOnce you have obtained your bitmap data we use a combination of Actionscript and PHP to convert the bitmap data to a jpeg and upload it to you a web server. We do this in 2 main steps, first step is uploading the image to the server then the second step is posting information back to our application.

Once we have our bitmap data from the Camera UI, we can then convert that to a jpeg and upload it. First step is declaring some variables. Read More

By Richard Mackenzie

Storing data on an IOS app with SQLite and FSO

There are many ways you can store data in you IOS or Android application, today I will run you through 2 types, Flash Shared Objects (flash cookies or FSO) and SQLite.

Flash Shared Object (FSO)

Zombie attackThis option is great for when you need to store small amounts of data such as a few variables. For example if you want to store a single highscore for a game like I needed to do for my IOS game Zombie Attack. First we place in this line “var mySharedObject:SharedObject = SharedObject.getLocal(“zombieattack”);”, this creates a file on the device that will store all your info (at the time or writing this, if you delete the app and re install it, your data will still be there as it is not stored on the app but rather in the phones documents directory)

So in the example below you can see I create a FSO called “zombieattack”. Read More

By Richard Mackenzie

Using Geolocation in your IOS app with Adobe AIR

GelocationSo you want to integrate Geolocation into your Adobe AIR IOS/Android application. Before you get started you will need to make sure you have the latest release of Adobe AIR (
Now we need to import the following code into our app so that the geolocation code is available to us

import flash.sensors.Geolocation;

Read More