MX : Passing Variables to Command String

I’m trying to design an interface that to simplify the construction of a string. Here’s an example: My output (using the getURL command) needs to be in the form of:

http://fakesite.com:8080/java/submitdata.jsp?thing1=x&thing2=y&thing3=z

I’m able to define variables for x, y, and z, however I am unable to figure out how to substitute the defined values for those variables into the string when it is time to send it.

I may not be being very clear here, but does anyone have any ideas?

Thanks

Jeff Kirsch

You should use loadVars for this.


things = new LoadVars();
things.thing1 = "x";
things.thing2 = "y";
things.thing3 = "z";
things.send("fake.jsp", "_blank", GET);

I think I understand this script, but does it have to be used locally? I don’t have access to the server I’m sending the data to, other than to submit said data. So, I need to send the entire string, including the “fakesite.com/8080/java/” part, changing just those few variables. Can I use the same actionsscript for that purpose?