Question

I have a menu control (as2), that is completely self-contained and doesn't rely on any interaction with the parent (as3). The menu control does load an external xml file that is in the same directory as the swf.

The menu control works fine when I run it on its own. But when I import it into the Library of my as3 fla, add it the stage and run it, it just sits and does nothing.

I can see the images that are part of the control, which leads me to believe it can't load the xml, but I'm not sure.

Does anyone have any ideas about:

  1. Loading an as2 swf into and as3 swf where they don't need to interact
  2. Loading an external file into an swf inside of another swf
Was it helpful?

Solution

Have you tried with flash.net.Loader or if you are going for a Flex app: SWFLoader?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top