How to stop HTTPService alphabetically sorting values when sending url...

Dear Experts,

New to Flex and programming so not sure what to do. I am sending a request to url using HTTPService but the values are being sent in alphabetical order and causing the request to fail or not work so to speak. I need the values in  the <mx:request> to be sent in the specific order in which there listed in the  <mx:request> tag.

How do I do this?

Joel
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
 
<mx:Script>
<![CDATA[
 
private function goLogin():void {
	
        httpSvc.send();
}
 
]]>
</mx:Script>
 
<mx:HTTPService resultFormat="e4x"  id="httpSvc" url="http://192.168.170.128:8088/server" showBusyCursor="true" useProxy="false" method="GET">
      <mx:request xmlns="">
            <command>Login</command>
            <username>admin</username>
            <password>1234</password>
      </mx:request>
</mx:HTTPService>
 
<mx:Button x="99" y="155" label="login" click="goLogin();"/>
 
</mx:WindowedApplication>

Open in new window

LVL 12
Joel_SiskoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

evcrCommented:
umm, I think we just fixed that
0
evcrCommented:
you could link this to the other question as the URLRequest code I posted in there is the solution to this question
0
Joel_SiskoAuthor Commented:
So is the answer that there is no settings with the HTTPService tag to stop this from happening?
0
evcrCommented:
That appears to be the case e.g. I just tested a simple object with three parameters.

  var params:Object = new Object();
                params.param3 = '3';
                params.param2 = '2';
                params.param1 = '1';
trace(ObjectUtil.toString(params));
returns...
(Object)#0
  param1 = "1"
  param2 = "2"
  param3 = "3"

So it seems to be more of an AS3 fundamental than related to just httpservice parameters
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Joel_SiskoAuthor Commented:
Well thanks for that information.

Here is a link that may have the workaround if you need to pass the parameters in a specific order:

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Flex/Q_23888682.html

Joel
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.