From SWF App to AIR for iOS

I have a Flash application that compiles to SWF and works on the Internet. I am considering converting this application to work on mobile devices such as iPhone / iPad.

I see that now there is the publication of Adobe Air applications on mobile devices . I thought, why not convert SWF to an AIR application , and then use this AIR application to publish to mobile devices. Does this make sense? Is this possible or possible?

What do people do to convert their existing Flash SWF applications to work on mobile devices?

+7
source share
3 answers

This question was only here, here , but to re-display any content Flash can be packaged in iOS or another mobile device with AIR.

AIR can be overlaid with Flash Professional or Flash Builder, or your SWF can be packaged using the ADT command-line package:

  • Download the AIR 3.0 SDK.
  • Provide a JRE or use one of Flash Builder.
  • Issue the adt command to pack the SWF into the IPA:

    adt -package -target [ipa-test | ipa-debug | ipa-app-store | ipa-ad-hoc] -keystore iosPrivateKey.p12 -storetype pkcs12 -storepass qwerty12 -provisioning-profile ios.mobileprovision HelloWorld.ipa HelloWorld-app.xml HelloWorld.swf icons Default.png 

It is important to note that all executable code must be in the same SWF to work on the iOS platform. SWFLoading or any dynamically loaded SWF that executes code is not supported. Thus, link your entire Flash with one SWF.

There are other considerations, such as optimizing performance and handling multiple screen resolutions and proportions.

Literature:

+3
source

There are several ways to achieve this:

  • You can download the Adobe AIR SDK and follow their help or this tutorial . This method will be a little tedious if you are not comfortable working with the command line, but this is perhaps the most powerful option, because you can configure and configure many options.

  • If you have a FLA file, the latest version of Flash CS6 should provide you with the means to create an IA IPA file more easily. If you are a Windows user, you will need to get the p12 file as well as the mobile software file. Adobe has documentation on how to do this without a Mac. In the end, when your IPA matures for the AppStore, you'll need a Mac.

Keep in mind that the SWF user interface will not immediately transition well for iOS. For example, the size of buttons, the availability of interactive user controls and, most importantly, mouseover events can sometimes adversely affect the experience of a mobile application.

But these problems have nothing to do with SWF, as I have seen similar problems with other HTML-based web applications.

Good luck, I would say writing Flash, and it works everywhere, including the iPhone / iPad, is a really amazing thing that most people don't know about.

+2
source

I do it exactly for a year or so.

You need to configure your certificates using keychain on Mac, and you must download the application from Mac. However, I do not have a Mac., Instead, I rent time on a remote Mac using ( macincloud or others), and use DropBox to send files back and forth.

Depending on how the SWF was created, you do not have to buy Adobe products. I use FlashDevelop , which automatically installs the latest Air and Flex SDKs. As long as you have a developer license, you can create an Air application from this, and you can also create an IPA file for upload to iTunes (or to Google Play or others).

Make sure you also read @JasonSturges answer. Good tips and links.

+2
source

All Articles