Using Flash Builder 4.5 to Package Arbitrary SWFs for iOS, Android, and PlayBook
Note: Using non-mobile optimized SWFs will most likely perform poorly. For example using any SWFs created with Flex SDKs before 4.5 should really be done with Flex 4.5 or higher.
Do you want to create Flash/AIR content for the different devices and don’t know where to start? Maybe you have some old SWFs that you want to try on a device or get your SWFs from another source (like an already package apk that you want to try on iOS with out recompiling). Then you might want to read more. This post and video shows how to setup a project in Flash Builder 4.5 to package arbitrary SWFs for Android, iOS, and PlayBook (the currently supported plugins).
Using Flash Builder 4.5 to Package Arbitrary SWFs for iOS, Android, and PlayBook from Renaun Erickson on Vimeo.
The basic steps from the video are:
- Create a new ActionScript Mobile Project and give it a name.
- Go to Project -> Properties -> Builders.
- Uncheck the “Flex” builder (but leave the “AIR application.xml Builder”)
- Now copy your arbitrary swf (ie: myapp.swf) into the bin-debug folder.
- Create an ActionScript class with the same name as the swf, (ie: myapp.as) in the default package space.
- Right click on the myapp.as file and click on “Set as Default Application”
- Now it will generate a myapp-app.xml, go and open and edit as you like.
- Click on run configuration and package your app for you the platform you want.
- Repeat steps to add more SWFs to package.
Pingback: Daily Developer Journal – May 3rd 2011