Search code examples
androidairflash-builderflash

Exporting multiple flash animations as android APK


I recently found out that flash (swf) files can be exported into an android native app (.apk) instllation coupled with the adobe air core, so this means a great opportunity to bring the animator's flash files into my native app without modifying them (Great!!) - Yet it brought me to a number of questions:

  1. Can I open the exported apk and, for example, take out the nice libCore.so and embed it in my apk?
  2. Can I insert more than one SWF file in one export, and then invoke each with intents or another mechanism?

The idea is to use the animation generated by the animator guy (which provides me with SWF files) and show them in my Android native app. Let's say there are 15 animations, and I each time I want to run one of them. I don't want multiple installations, that's why I want the exported apk mixed with my app (is it possible?).


Solution

  • I don't know about the first question, but in regards to number 2, you will need to include the swfs during project compilation (usually by including an "assets" folder created in the source folder).

    Within your main application, you could use a loader to load in a swf and add it as a display object. Each time you need to show another swf, stop and remove the current one, and load again.