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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:56:55+00:00 2026-05-13T09:56:55+00:00

I hope this isn’t too vague, but I’m stuck on a problem that has

  • 0

I hope this isn’t too vague, but I’m stuck on a problem that has put me in an Unfortunate Position.

I’m Flash developer getting my feet wet with with AS3 and am trying to build an interior decoration tool for a client. My thinking so far has been: create the basic user interface, get the screen flow down, and then finally use a couple of simple arrays to store user selections and stuff like that.

Naturally my ‘couple of simple arrays’ is totally inadequate to model the many user decisions that my program has to take into account. So I find myself trying to create an enormous, multi-dimensional array with several layers of nesting and before Panic sets in.

Here’s an example of my thinking for the ‘bedding’ component of the application in pseudo ActionScript:

bedding['size']   = 'king':String
bedding['cover']  = cover:Array

    cover['type']           = 'coverlet':String
    cover['style']          = 'style_one':String
    cover['variation']      = 'varation_one':String
    cover['fabric']         = fabrics:Array

        fabrics[0] = 'paisely':String
        fabrics[1] = 'argyle':String
        fabrics[2] = 'plaid':String

    cover['trim']          = trim:Array

        trims[0] = trim_pair:Array

            trim_pair['type']  = 'trim_one':String
            trim_pair['color'] = 'blue':String

        trims[1] = trim_pair:String
        trims[2] = trim_pair:String

    cover['embellishments'] = embellishment_pair:Array
        embellishment_pair['type'] = 'monogram':String
        embellishment_pair['letters'] = 'TL':String

… keep in mind that this is just a fraction of what goes into bedding and there are several other of these kinds of arrays that would go into a room like flooring and walls and funture… all equally complex. And I’ll need to frequently access different combinations like, how many options under bedding have no value associated and things like that.

So, I realize I’m out of my league and am going to get hurt on this, but I’d like to try to get this right so that I get better and any help you guys can provide is great.

My questions are:

1) Could it be that using nested arrays like this actually isn’t such a bad thing and I should just stick it out? That would suprise me, but I want to make sure I’m not already on the right path.

2) If not, where do I go from here if I want to do this right?

Off the top of my head I feel like I could maybe make everything class based. So my sheets are a class and beds have instances of sheets and rooms have instances of beds… etc. It think it would be complicated but might be the way to go.

Or maybe, I go the XML route and store all of the room options in nested blank XML nodes that a user then populates as they move through the application.

These are my thoughts but I’d like to hear what more experienced members of the community say.

Thank you so much for your help!

  • 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-13T09:56:55+00:00Added an answer on May 13, 2026 at 9:56 am

    My suggestion would be to use a strongly typed model. Look into using collections and value objects to store and retrieve data. A collection could be a class that wraps an Array and provides a clean interface for fetching the value objects that it stores. Value objects are simple objects representing data that can be assembled in various ways to create more complex collections. Value objects can also be passed around to transfer data to various parts of an application. The advantage to using collections and value objects is that your code will be ( potentially ) more explicit and over-all easier to read than if you went with a dynamic approach. For some, the downside to this approach is that you end up with too many classes. Personally, I prefer working with many small to medium size classes versus one monolithic class.

    If you are not familiar with the concept of value objects: http://en.wikipedia.org/wiki/Data_transfer_object.

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

Sidebar

Related Questions

I'm relatively new to web application programming so I hope this question isn't too
I hope this question is not considered too basic for this forum, but we'll
I hope this isn't a duplicate of a question itself, but the search terms
I hope this isn't considered a duplicate since it's more pointed than similar questions
I hope this question does not come off as broad as it may seem
I hope this is programmer-related question. I'm in the hobby business of C# programming.
I hope this is a simple enough question for any SQL people out there...
I hope this is close enough to programming to pass the bar :) Is
I hope this question is not a RTFM one. I am trying to write
I am just getting started with expression trees so I hope this makes sense.

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.