You can use relative paths.  But that does dictate where you put data
service.

 

I often pass urls into my Flex application through flashvars in the html
wrapper.  Among other things, it lets me switch my data services between
development, QO and production servers very easily

 

Once you have the url in Flex, you can simply assign the url to the url
property:

reportProfile.url = _sMyUrl;

reportProfile.send();

 

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of myworld100us
Sent: Sunday, May 17, 2009 5:19 PM
To: [email protected]
Subject: [flexcoders] Question on Mx:HTTP Service

 






I am using an app Server{Jboss] to host Flex files .
I want to call 

<mx:HTTPService id="reportProfile" resultFormat="e4x" useProxy="false"
result="showReports(event)" url="http://machineName:
<http://machineName:8080/ContextPath/flex/showReports.do>
8080/ContextPath/flex/showReports.do"/>

how do i replace this part url= "http://machineName:
<http://machineName:8080/ContextPath/flex/showReports.do>
8080/ContextPath/flex/showReports.do" with
"/ContextPath/flex/showreports.do" . 

Otherwise its link depending on the environment i have to keep changing the
machineName and port 



Reply via email to