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

Posted on 2008-11-11
Last Modified: 2013-11-11
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?

<?xml version="1.0" encoding="utf-8"?>

<mx:WindowedApplication xmlns:mx="" layout="absolute">



private function goLogin():void {







<mx:HTTPService resultFormat="e4x"  id="httpSvc" url="" showBusyCursor="true" useProxy="false" method="GET">

      <mx:request xmlns="">






<mx:Button x="99" y="155" label="login" click="goLogin();"/>


Open in new window

Question by:Joel_Sisko
    LVL 7

    Expert Comment

    umm, I think we just fixed that
    LVL 7

    Expert Comment

    you could link this to the other question as the URLRequest code I posted in there is the solution to this question
    LVL 12

    Author Comment

    So is the answer that there is no settings with the HTTPService tag to stop this from happening?
    LVL 7

    Accepted Solution

    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';
      param1 = "1"
      param2 = "2"
      param3 = "3"

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

    Author Comment

    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:


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now