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

  • SEARCH
  • Home
  • 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 948155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:11:51+00:00 2026-05-15T23:11:51+00:00

In ActionScript I have string as str=subject,r1,r2:a,b:1,2:3,4; dynamically i have split this string and

  • 0

In ActionScript I have string as

str="subject,r1,r2:a,b:1,2:3,4";

dynamically i have split this string and build array collection as given below

arraycoll.addItem({subject:a ,r1:1,r2:3});

this example of one set

the arraycollection should be built dynamic i have tried but not successful

  • 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-05-15T23:11:52+00:00Added an answer on May 15, 2026 at 11:11 pm
    var str:String ="subject,r1,r2:a,b:1,2:3,4";
    var parts:Array = str.split(":");
    var props:Array = parts[0].split(",");
    var count:Number = parts[1].split(",").length;
    var items:Array = [];
    var values:Array = [];
    var i:Number, j:Number;
    for(i = 0; i < props.length; i++)
      values.push(parts[i + 1].split(",")); 
    for(i = 0; i < count; i++)
    {
      items.push({});
      for(var j = 0; j < props.length; j++)
      {
        items[i][props[j]] = values[j][i];
      }
    }
    var arCol:ArrayCollection = new ArrayCollection(items);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple actionscript function var string:String = TEXT REMOVED; var myArray:Array =
In Actionscript you can have global variables like this: var number : Number =
I have a pure ActionScript 3 project that I build using the open source
How to insert complex strings into Actionscript? So I have a string -vvv -I
For example I have this string of 2 json objects: {"glossary": {"title": "example glossary"},
At the moment I have this in Actionscript (for Flex) to create 26 labels
ActionScript's Array and Vector classes both have a slice() method. If you don't pass
I have an array that has been built and passed into actionscript from javascript.
I have a javascript in my page which requires a string list in this
I have some ActionScript code that splits a string using Regular Expression and lets

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.