0 Replies Latest reply on Nov 10, 2006 8:30 AM by sylpogi

    How to define a path when loading a XML file...?

    sylpogi Level 1
      I am importing a .swf file (dynamic diaporama) in a HTML page and there is a problem in the path. I explain : I use ActionScript in my flash file to load a XML document :
      so, both files are located in the same directory.

      But when I import my flash animation in my HTML page (which is in a parent directory), the XML data are not found.
      Of course I can put a copy of my XML file in the parent directory ; but is there a way to "encapsulate" ("attach" the data file) the XML file in the swf file ?

      The same happens with the directory containing the pictures of the diaporama : the path defined in my flash code differs from the one expected from my HTML page's directory.

      Thanks for your help.