tags:

views:

16

answers:

1

Hi, I have an app that retrieves data from an XML file on a server. I know how to set the initial link to the data but I would like this to be able to changed based on the user's setting. How to I update the retrieve data service url in runtime. I am using the latest version of Flex with Flash builder 4.

Thanks for any help.

A: 

Assign an id to the HTTPService:

<mxHTTPService id="service" url="default.php" other="attributes"/>

Now you can access the HTTPService object using its id from a function:

this.service.url = "the_new_url.php";
Amarghosh