0

I am passing one ActionScript 3.0 arrayCollection containing multiple objects from Flex to Java side. Below is the arrayCollection:

  public var myAC:ArrayCollection = new ArrayCollection([
        {label:"A", data:"a"},
        {label:"B", data:"b"},
        {label:"C", data:"c"}
        ]);

I am using BlazeDS. I want to iterate over it and use that data in the java method. Please tell me what will be the data type of receiving parameter ? How to extract each object from that?

1 Answer 1

1

According to the BlazeDS documentation, an ArrayCollection... who would've thought? ;-)

As you can see, ArrayCollection is an ArrayList subclass -- this should mean you can treat it as such, too.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.