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 6855165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:43:24+00:00 2026-05-27T01:43:24+00:00

Why does trace(length) return 1? I expected it to be 3. How would I

  • 0

Why does trace(length) return 1? I expected it to be 3.

How would I loop through each screen object?

appData:Object = JSON.parse   {

"screen":
{
    "type": "Title",
    "title":
    {
        "en":"",
        "ae":""
    },
    "content":
    {
        "en":"",
        "ae":""
    }
},

"screen":
{
    "type": "Text",
    "title":
    {
        "en":"",
        "ae":""
    },
    "content":
    {
        "en":"",
        "ae":""
    }
},

"screen":
{
    "type": "Map",
    "title":
    {
        "en":"",
        "ae":""
    },
    "content":
    {
        "en":"",
        "ae":""
    }
}
};

var length:uint = 0;
for ( var s:* in appData)
{
length++
}
trace(length);
  • 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-27T01:43:24+00:00Added an answer on May 27, 2026 at 1:43 am

    The problem is with your JSON structure. You’re using the “screen” property name multiple times, and these need to be unique. Alternatively, you could use an Array structure here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why does this code not print an exception stack trace? public class Playground {
I see this in a stack trace: myorg.vignettemodules.customregistration.NewsCategoryVAPDAO.getEmailContentByID(I)Lmyorg/pushemail/model/EmailContent; What does the (I)L mean?
Why does this code return Specified method is not supported. using System; using System.IO;
does Exchange Server 2007 and 2010 allows us to create Appointment, Emails, Contacts through
I'm puzzled as to why get(Object obj) does not work with instance variables (instance
Obviously, the typical WebForms approach won't work. How does one track a user in
Does SQL Server maintains any history to track table alterations like column add, delete,
does anyone know of a Visual Studio (2008) Plug-in that attempts to track how
I downloaded Google speed tracer for Google chrome to see how my site does
We're trying to track down some .Net assembly dependency problems. On Windows XP, does

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.