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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:24:40+00:00 2026-05-28T16:24:40+00:00

I have a load of objects with arrays in them. var tabData0: Object =

  • 0

I have a load of objects with arrays in them.

var tabData0: Object = new Object();
tabData0.tab1 = new Object();
tabData0.tab1.names = new Array();
tabData0.tab1.names.push("<b>111.</b> Het systeem aan- of uitzetten", "<b>2.</b> De  temperatuur verhogen of verlagen");

var tabData1: Object = new Object();
tabData1.tab1 = new Object();
tabData1.tab1.names = new Array();
tabData1.tab1.names.push("<b>222.</b> Het systeem aan- of uitzetten 2", "<b>23.</b> De  temperatuur verhogen of verlagen");

The idea is to pick from one of those objects and insert the contents into a texfield.

I retreive a var from 3 levels up and store it, then combine it with tabData.

var moveRemoteHolder = MovieClip(parent.parent.parent).remoteHolder;
var all = "tabData"+moveRemoteHolder;
trace ("all = " +all); // returns: all = tabData0

I want to combine this output with a few more to refer to my object / array.
The remoteHolder contains the value I need to know which object (tabData0, tabData1, etc) to retrieve the info from.

tabHolder['btn' + i].titleHolder.titleField.htmlText = all['tab' + tab].names[(i-1)];

But get this:

ReferenceError: Error #1069: Property tab1 not found on String and there is no default value.
  • 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-28T16:24:41+00:00Added an answer on May 28, 2026 at 4:24 pm

    UPDATED based on comments on this answer from OP. See revised code snippet.

    I can see why the results are confusing. You are tracing out “tabData0” because:

    1. var all is untyped
    2. var moveRemoteHolder is untyped
    3. MovieClip is a dynamic class
    4. remoteHolder is undefined on MovieClip(parent.parent.parent)

    http://www.youtube.com/watch?feature=player_embedded&v=kwRvoeGsuY8

    I recommend this instead:

    var dataContainer:MovieClip = MovieClip(parent.parent.parent);
    var all:Object = dataContainer["tabData" + dataContainer["moveRemoteHolder"]];
    trace ("all = " + all);
    

    HTH!

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

Sidebar

Related Questions

I have an XML that I want to load to objects, manipulate those objects
I have a problem using Linq to NHibernate to load an object and eagerly
I have a Javascript Map kit, and it use Image object to load images.
I have a Java Properties object that I load from an in-memory String ,
I have to load an array of doubles from a file, multiply each element
I have one 'main' thread that creates an array of objects of class SlowData
I have the following method, which basically calls a request to load an array
At my day job we have load balanced web servers which talk to load
I have to load huge (3000x3000) pictures in SWFLoader, and no problems with that
I have a load of php templates which uses a custom translate function __,

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.