Skip to main content
Known Participant
June 4, 2011
Question

Combine 10 smaller .swf apps into 1 big app with menu? Possible?

  • June 4, 2011
  • 1 reply
  • 520 views

Hi,

I create educational games for kids.

These are normally made as 1 swf file for each minigame and I allready had a collection of these.

Is it somehow possible in air for android (I understand that for iOS is likely not possible because of Apple restrictions) to include all these SWF files together with 1 menu.swf into 1 big package so that the menu could somehow load a activity swf on demand (local, since the swf is allready in the package) ?

I also understand that communication from the activity to the menu.swf is most probably sandboxed, but I suppose that communication from menu to loaded activity should still be possible so I can somehow set a variable flag in the loaded content for the menu.swf to know when it may unload the content.

Hopefully somebody can give me a little help on this, first of all if its possible at all and secondle (if possible) in what direction I should go start looking to create this.

Working with flash CS5 by the way.

This topic has been closed for replies.

1 reply

relaxatraja
Inspiring
June 6, 2011

Yes, you can do:

i) Create a index file and use loader for swfs and assign the loader contents to a movieclip to control the timeline of loaded swf.

ii) External swf should not contain any script and whatever script you have to do will control by your index.

I had done a project by creating many .as files for the external swfs and just include that in the index file when accessing the external swf.