0 Replies Latest reply on May 10, 2007 3:07 AM by Nonnatee

    HTTPService and it's relative url

    Nonnatee
      My project's folder structure :

      - project Name
      - _gen // output
      - data // xml
      - scr // MXML, AS source

      when I run the html file in the output folder as is, it work fine. However, when i copy the entire 'project name' and it's sub-folder to different location. The application still run but won't load the XML file located in the data folder.

      section of the code used to load XML file :

      <mx:HTTPService
      id="CfgLoader"
      useProxy="false"
      url="../data/QwvCfg.xml"
      result="resultHandler(event);"
      resultFormat="e4x"
      fault="{mx.controls.Alert.show('Error Loading Config File!','Connection Error!');}"
      />

      In summary, when copying to different location other than the project specified location. HTTPService's connectivity become in accessible.

      Any idea or suggestion is much appreciated.

      Thank you,
      NK