HTTP Request Error Using Flex 2 on Mac Osx

This may be of some help to some, a simple solution to a simple silly problem….

Today I delved into compiling a datgrid with data from an xml file via HTTService on mac osx (something I have only done on windows so far) and generated this error:

RPC Fault faultString=”HTTP request error” faultCode=”Server.Error.Request”

My code was:

1
2
3
<mx:HTTPService id="srv"
      url="assets\datagriddata.xml"
        result="beats = srv.lastResult.styles.item"/>

Problem solved with a simple flip of the backward slash in the url so it read:

1
url="assets/datagriddata.xml"

Comments