Skip navigation
edags9
Currently Being Moderated

Flex application that loads a mult-filed sub application

Jun 15, 2012 7:03 AM

Tags: #module #component #air3 #flex4.6 #mobile_air

Hi I'm developing a mobile application that that allows a user to choose one of several sub-applications and then runs that sub-application. These sub-applications are interactive, flash based training modules. These applications are also composed of multtiple .swf files that interact and create the various screens of the application. I know how to load one of these .swf files and get it to display using the SWFLoader, however I don't know how to get the entire sub-application loaded and running. Is there an easy to way to load all of these .swf files and run them concurrently or at least in way so that they can interact?

 
Replies
  • Currently Being Moderated
    Jun 16, 2012 5:26 PM   in reply to edags9

    Yes, you can load any number of SWFs that interact with each other (except in iOS of course). You just need a parent container with the logic to get any messages to where they are going. Maybe I don't understand the question. Is there a specific design decision in your app that is preventing you from doing so? What problem are you trying to solve, specifically?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2012 3:10 PM   in reply to edags9

    AIR does allow such a thing, but Apple does not. It is a violation of the iOS Developer Guidelines to load executable content at runtime. Assuming there is no code in the SWF [most of them have at least a call to stop()], then it should work in iOS.

     

    To load multiple SWFs, just use multiple SWFLoader instances and place them on the display list. It helps if your loaded SWFs implement a common interface so you can interact with them in a generic way.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points