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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:46:36+00:00 2026-05-23T12:46:36+00:00

I have an Flex-Object with for example 3 properties. myObj.prop1 myObj.prop2 myObj.prop3 I like

  • 0

I have an Flex-Object with for example 3 properties.

myObj.prop1
myObj.prop2
myObj.prop3

I like to generate 3 Comboboxes to show the data.
No problem if I do it hardcoded in sourcecode.

But how can I find the prop1 to prop3 at runtime?

If next time I have 5 properties with different name it should generate 5 combos.

Thanks for any help
Jan

  • 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-23T12:46:36+00:00Added an answer on May 23, 2026 at 12:46 pm

    Take a look at this question which shows you how to get all the properties in an object. Then just loop over them:

    for each(var id:String in myObj) {
      // create ComboBox
      var combo : ComboBox = new ComboBox
      addChild(combo);
    }
    

    It is unclear from your post how the properties in the myObj relate tot he ComboBoxes you want to create. It is also unclear how you will distinguish your custom properties from the generic properties of an Object.

    When defining dynamic properties like this, I prefer to use a Dictionary instead of an Object; but that is just my preference. Objects will work fine too.

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

Sidebar

Related Questions

I have a Flash/Flex object (Flashlight-VNC), which I would like to dynamically resize to
I have an value object in Flex which looks like: [Bindable] public class MyVO
I have a flex 3 app that uses netstream and a video object to
If I have an XMLList object in Flex, what is the proper way to
If I have an object in a layout in Flex what is a good
Using Flex 3.2, I have a object which extends a TitleWindow. In this TitleWindow
I have a flex application that needs the ability to generate and execute JavaScript.
I have the requirement in a Flex application to create & populate an object
If I send remote data from Zend_Amf to Flex, if two array properties on
I have a flex object embedded in a velocity page. Above the flex object

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.