Reputation: 121
I have a Flex web application with Java as back end service and now I need to make this web application run on iOS devices. Can I do that? and if so How do I do that.
Upvotes: 2
Views: 2757
Reputation: 15955
In Flash Builder, right-click the project you want to change and select "Add/Change Project Type"
For my development, I keep all code in libraries so that my application types are single classes that wrap a view. You could abstract your application to a library and have multiple application projects.
Or, you could create a mobile application and add a source path to your existing project.
Another approach would be to take your existing application release build SWF and add a descriptor XML to package with adt from the AIR 3.0 SDK:
Download, unpack, and add AIR 3.0 SDK to your path (ex: C:\sdks\AIR\bin). Make sure a Java JRE is in your path (you can use the one from Flash Builder). Compile your IPA for iOS:
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
Executed via command line, the above will package your SWF and resources to an IPA ready for iOS devices.
Upvotes: 3