Here 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.
This 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.
Once 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
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)
This 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
So 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 (18.104.22.1680).
Now we need to import the following code into our app so that the geolocation code is available to us