4 Replies Latest reply on May 4, 2011 5:33 AM by ojuin

    Problem loading swf which reads data in a local file

    ojuin

      Hi,

       

      Using flex with a online project, I have to load a swf file, which reads data in a xml file (it works fine if I open it with flash player)

       

      I do a very simple test :

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                      layout="absolute"
                      minWidth="955" minHeight="600"
                      >
          <mx:SWFLoader id="swfloader" source="data/player.swf"/>
      </mx:Application>

       

      The result is that player.swf can't read the xml file (error : Error #2044: ioError non pris en charge : text=Error #2032: Erreur de flux. URL: enonce.xml).

       

      I do the same test with an AIR project, and it works fine !!!!

       

      It works also if I put the xml file directly at the same level as my compiled application (in bin-debug for instance).

      I think that it's a path problem, but I don't know how to set it.

       

      Is there any way to solve the problem ???

       

      Thanks a lot !

       

      Olivier