Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8532035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:37:17+00:00 2026-06-11T09:37:17+00:00

the question is, how? An AS3 ordered object is supposed to keep the properties

  • 0

the question is, how?

An AS3 ordered object is supposed to keep the properties insertion order, so i pass the Ordered Object through a spark remote object and receive it as a LinkedHashMap, but the for each loop reads em in a messed up order.

I also tried to find documentation about passing OrededObjects in my free time for the last 3 days without any luck so far =/

Im not pursuing the functionality in general, i just wanna know if this is possible.

short example:

Flex

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>    
        <s:RemoteObject
            id="exampleRO"
            destination="example"/>
    </fx:Declarations>
    <fx:Script>
        <![CDATA[
            import mx.utils.OrderedObject;
            private var oobject:OrderedObject=new OrderedObject();
            private function sendObject(){
                oobject["key1"]="value1";
                oobject["key2"]="value2";
                oobject["key3"]="value3";
                oobject["key4"]="value4";
                exampleRO.send(oobject);
            }
        ]]>
    </fx:Script>
    <s:Button click="sendObject()"/>
</s:Application>

Java backend

import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

import org.apache.log4j.Logger;

public class somename{
    private static Logger logger = Logger.getLogger(somename.class);
    public void send(LinkedHashMap<String, Object> oobject){
        Iterator it;
        Map.Entry e;
        for(it=oobject.entrySet().iterator(); it.hasNext();){
            e = (Map.Entry)it.next();
            logger.info("oobject key: "+  e.getKey() + " value:" + e.getValue());
        }

    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:37:18+00:00Added an answer on June 11, 2026 at 9:37 am

    just got it working =)

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Declarations>    
            <s:RemoteObject
                id="exampleRO"
                destination="example"/>
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import org.as3commons.collections.LinkedMap;
                private var oobject:LinkedMap=new LinkedMap();
                private function sendObject(){
                    oobject.add("key1","value1");
                    oobject.add("key2","value2");
                    oobject.add("key3","value3");
                    oobject.add("key4","value4");
                    oobject.add("key5","value5");
                }
            ]]>
        </fx:Script>
        <s:Button click="sendObject()"/>
    </s:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First Question in here :) (AS3) First off, how do I access a variable
Similar question: Best Resources for Learning AS3 I am interested in learning AS3 and
Question from Object-Oriented JavaScript book: Imagine Array() doesn't exist and the array literal notation
Question in title pretty much sums it up. I have some resource object defined
I've a question about variables in AS3 OOP. Do I have to set them
I'm moving to a pure as3 environment into flex and I have a question
referring to my old question AS3: Analyzing sound spectrums one by one, one channel
I have a question regarding AS3 memory management I wonder if anyone could help
my question today deals with Flash AS3 video buffering. (Streaming or Progressive) I want
I am using as3. Just a simple question. If I created a static method.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.