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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:05:56+00:00 2026-05-29T23:05:56+00:00

The first 2 loops set the textfields just fine. But the next 2 give

  • 0

The first 2 loops set the textfields just fine. But the next 2 give me the error Error #1010: A term is undefined and has no properties. Something is NULL, but what? Can’t figure out 🙁

import flash.text.TextField;

var suallar:Array = new Array();
var cavablar_temp:Array = new Array();

var i:int;
var j:int;

suallar.push(["sual1", "duz1", "sehv11", "sevh12", "sevh13","sevh14"]);
suallar.push(["sual2", "duz2", "sehv21", "sevh22","sevh23","sevh24" ]);
suallar.push(["sual3", "duz3", "sehv31", "sevh32","sevh33","sevh34"]);
suallar.push(["sual4", "duz4", "sehv41", "sevh42","sevh43","sevh44"]);
suallar.push(["sual5", "duz5", "sehv51", "sevh52","sevh53","sevh54"]);

var sualYeri:Array = new Array();
for (i=0; i<suallar.length; i++)
{
    sualYeri[i] = new TextField();
}




for (i=0; i<suallar.length; i++)
{
    sualYeri[i].text = suallar[i][0];

    sualYeri[i].x = 0;
    sualYeri[i].y = 50 * i;
    addChild(sualYeri[i]);
}

trace(sualYeri.join("\n"));
trace(suallar.join("\n"));

last 2 loops, that don’t work start here

var cavabYeri:Array = new Array();

for (i=0; i<suallar.length; i++)
{
    for (j=0; j<suallar.length; j++)
    {
        cavabYeri[i][j] = new TextField();

    }
}
trace(cavabYeri.join("\n"));



for (i=0; i<suallar.length; i++)
{
    for (j=0; j<suallar[i].length; j++)
    {
        cavabYeri[i][j].text = suallar[i][j];

        cavabYeri[i][j].x = 0 + 100 * j;
        cavabYeri[i][j].y = 0 + 100 * i;
        addChild(cavabYeri[i][j]);
    }

}
  • 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-29T23:05:59+00:00Added an answer on May 29, 2026 at 11:05 pm

    The problem is that you initialized the cavabYeri array but not its subarrays.

    for (i=0; i<suallar.length; i++)
    {
        cavabYeri[i] = []; // or new Array();
        for (j=0; j<suallar.length; j++)
        {
            cavabYeri[i][j] = new TextField();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Come across what looks at first sight like an MT-issue, but I'm trying to
first time posting here. I'm using a loop to create 3 buttons, but my
First of all, I just wanted to say thanks for all the help given
I've got this code which basically loops through a set of folders and subfolders
how can i set de debugger to stop when some particular variable has a
I'm trying to make my first jQuery plugin. Basically it's just like a wrapper
I've got a method similar to this, which loops through one set of data
First off...here's the problem... Give an example of a directed graph G = (V,
What accounts for the added execution time of the first data set? The assembly
I have created a bar over the keyboard for textfields with previous/next/done button selections.

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.