Packager for iPhone – a Flash CS5 feature:

The Packager for iPhone is a feature of Adobe Flash Professional CS5, which offers Flash Developers to use Action Script 3.0 to deliver iOS applications for devices like iPhone, iPad, iPod etc. Flash CS5 has the ability to publish Flash application iOS. As a part of our course, prof. Dan Zen introduced us to this technology and with his help I developed some games for iOS using Flash. This was really a mind blowing experience.

Few words about becoming an iPhone Developer:

Before you start developing applications for iPhone you will need to register in the Apple iPhone Developer program ( There are three different programs you can enrol in. There is free version in which you can download the iPhone SDK and develop apps in your desktop. It won’t allow you to upload the app to an iOS device. The standard program, costs $99/year, allows you to develop applications and distribute in the App store. The enterprise program, costs $299/year, is meant for companies which develop and distribute in-house application.  Luckily as I am a student of Sheridan, I was able to enrol for standard program without paying $99.

iOS Dev Center:

This is the online for your iPhone Development Account. You can download sample codes, user guides etc. from here. Once you login to the iOS Developer Account, it will take you through the necessary steps to get your application on to your device. This portal allows you to create developer certificate and provisioning profile. It also allows you to install your application on to the device.

Flash CS5:

With the ability to publish iOS application, Flash CS5 comes with many features which can be of great use for developing iOS applications.

  1. Accelerometer: Flash.sensors.Accelerometer class gives us the ability to interact with accelerometer in iOS. iOS uses accelerometer to detect rotation, gravity, translation, shake etc.
  2. GeoLocation: Flash.sensors.Geolocation class enables us to interact with devices location sensor.
  3. TouchEvent: class is use to detect when user touches the screen
  4. GestureTransformEvent: The GestureTransformEvent class can detect four different types of gestures: swipe, rotate, pinch and zoom, and pan.
  5. StageOrientation:

My Experiments in Publishing iOS app from Flash:

First I created an Apple development Account. After signing in to the Apple iOS Dev Center, I generated a Certificate Signing Request to obtain Developer Certificate. Then I installed OpenSSL and convert the certificate to a P12 file.

In the provisioning portal I added the device using its UDID (obtained using iTunes) and created an app ID.  After this I created a provisioning profile using the app ID and the developer certificate. Provisioning profile allows you to test specified app on a specified device using your specified developer certificate. To test more than one app you need to create more provisioning profile.

In Flash I created a new file using iPhone OS. I created a small Pacman game using accelerometer class. In iPhone OS Settings, under General tab I added included files like .mp3 files and .swf file. Under Deployment tab I added my development certificate and the Provisioning profile. Under Icons tab I added the .png image as icon for my app. Once I hit publish, an .ipa file is created. I dropped this file under the apps tab in iTunes and synch it with my iPod. I was really excited to see my first game on iOS.  

Here is the video link for my Pacman game demo :


Links for help:
This entry was posted in Technology, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s