To access the DisplayObjects in a For loop

Hello

I do a form based on given data and would therefore show a variable number of formitems, and some of the formitems will have a variable number of option buttons.

I would like to know how I can access the formitems (e.g. option button is selected), given that they are added to the application in a loop for using the addChild method and are therefore not assigned to a constant variable. That is to say

for (f = 1 to numQuestions) {

     ...
     form_panel.addChild(text_input);

     for (c = 1 to numRadioButtons) {

          rButton = new RadioButton;
          rButton.label = externalData.getItemAt(c).question_option;
          form_panel.addChild(rButton);

     }

}

Thanks in advance,

Alex.

FlexHarUI is right, but in detail, you must use the construction like this:



for (f = 1 to numQuestions) {

     ...
     form_panel.addChild(text_input);
     textInputsArray.push(text_input);     for (c = 1 to numRadioButtons) {

          rButton = new RadioButton;
          rButton.label = externalData.getItemAt(c).question_option;
          form_panel.addChild(rButton);
          radioButtonsArray.push(rButton);     }

}

And you can access all your text entries and radio buttons with Te textInputsArray [indexOfItem], or textInputsArray.getItemAt (IndexOfItem)

Tags: Flex

Similar Questions

  • PC can see and access the laptop without asking for a user name and password but the laptop cannot access the PC because it asks me a username and password that I don't know.

    Vista - Windows 7 network connection. username and password is unknown.

    Hello

    I just got a laptop with windows 7 on it and I want to connect to my other PC for it, they are on the same network through a router. the PC can see and access the laptop without asking for a user name and password but the laptop cannot access the PC because it asks me a username and password that I don't know.

    If someone could answer this question, it would be great.

    Hello
    Maybe this can help.

    Win7 when configured on the peer-to-peer network has three types of configurations of sharing.

    Group residential network = only works between Win 7 computers. This type of configuration, it is very easy to entry level users to start sharing network.

    Working network = fundamentally similar to previous methods of sharing that allow you to control what, how and to whom the records would be shared with.

    Public share
    = network Public (as Internet Café) in order to reduce security risks.

    For the best newspaper of the results of each computer screen system and together all computers on a network of the same name, while each computer has its own unique name.

    http://www.ezlan.NET/Win7/net_name.jpg

    Make sure that the software firewall on each computer allows free local traffic. If you use 3rd party Firewall on, Vista/XP Firewall Native should be disabled, and the active firewall has adjusted to your network numbers IP on what is sometimes called the Zone of confidence (see part 3 firewall instructions

    General example, http://www.ezlan.net/faq.html#trusted
    Please note that some 3rd party software firewall continue to block the same aspects it traffic Local, they are turned Off (disabled). If possible, configure the firewall correctly or completely uninstall to allow a clean flow of local network traffic. If the 3rd party software is uninstalled, or disables, make sure Windows native firewall is active .

    ------------------------------

    If your network consists only of Win 7 and you want a simple network, use it.

    http://Windows.Microsoft.com/en-us/Windows7/help/videos/sharing-files-with-HomeGroup

    After you have configured the homegroup, scroll to the bottom for the Permission/security section.

    -----------------------------

    Win 7 networking with other version of Windows as a work network.

    In the center of the network, by clicking on the type of network opens the window to the right.

    Choose your network type. Note the check box at the bottom and check/uncheck depending on your needs.

    http://www.ezlan.NET/Win7/net_type.jpg

    Win 7 - http://windows.microsoft.com/en-us/windows7/Networking-home-computers-running-different-versions-of-Windows

    Win 7 network sharing folder specific work - http://www.onecomputerguy.com/windows7/windows7_sharing.htm

    Vista file and printer sharing - http://technet.microsoft.com/en-us/library/bb727037.aspx

    Windows XP file sharing - http://support.microsoft.com/default.aspx?scid=kb;en-us;304040
    Sharing printer XP - http://www.microsoft.com/windowsxp/using/networking/expert/honeycutt_july2.mspx

    Setting Windows native firewall for sharing XP - http://support.microsoft.com/kb/875357
    Windows XP Patch for sharing with Vista (no need for XP - SP3) - http://support.microsoft.com/kb/922120

    When you have finished the configuration of the system, it is recommended to restart everything the router and all computers involved.

    -------------

    If you have authorization and security problems, check the following settings.

    Point to a folder that wants to share do right click and choose Properties.

    In the properties

    Click on the Security tab shown in the bellows of the photo on the right) and verify that users and their permissions (see photo below Centre and left) are configured correctly. Then do the same for the authorization tab.

    This screen shot is to Win 7, Vista menus are similar.

    http://www.ezlan.NET/Win7/permission-security.jpg

    The Security Panel and the authorization Panel, you need to highlight each user/group and consider that the authorization controls are verified correctly.

    When everything is OK, restart the network (router and computer).

    * Note . The groups and users listed in the screen-shoot are just an example. Your list will focus on how your system is configured.

    * Note . There must be specific users. All means all users who already have an account now as users. This does not mean everyone who feel they would like to connect.

    ---------------------

    *** Note. Some of the processes described above are made sake not for Windows, but to compensate for different routers and how their firmware works and stores information about computers that are networked.

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • I have a very old version of photoshop that I downloaded from a CD for PC. Now, I have a Mac. If I have the serial number, is it possible for me to access the photoshop I bought for PC and download it on my Mac?

    If I have the serial number, is it possible for me to access the photoshop I bought for PC and download it on my Mac? I was told that I had to update my old software for photoshop, but I don't know if it is still possible because I do not have access to a PC. Thank you!

    Windows programs do not run on a Mac, or vice versa

    You buy a new program that is specific to Mac

    In addition, unless you want to buy software 3 year and longer, it is NOT being updated you must purchase a subscription to a Cloud program... the special program of photography is $ 10 per month

    Link to buy 3 + years CS6 via phone http://www.adobe.com/products/cs6.html

    Cloud Plans https://creative.adobe.com/plans

    PS - to clarify the future, downloading is what you do to get a file from a Web site to your computer... The installation is that you ask the subject

  • How can I access the properties in reader for mobile

    How can I access the drive properties in the mobile app?

    Hi robmorrison75,

    Unfortunately, it is not possible to display the properties of the fields on form or annotations in Acrobat Reader mobile apps (for iOS, Android, Windows Phone).

    Please use the version of desktop of Acrobat Pro to view and change the properties.

    Sorry for the inconvenience.

  • Trying to access the website of DNSchanger for desire but I keep get explore cannot connect.

    Question of dooesday DNSC

    trying to access the website of DNSchanger of desire but I keep getting explore cannot connect a does that mean I'm infected

    Hello

    If you run MSE or an other major antivirus programs, so you have protection.

    The site is probably just delayed due to heavy access.

    Check this thread:

    http://answers.Microsoft.com/en-us/protect/Forum/protect_start/DNS-changer-virus/88be0bb0-da0f-4688-97fe-6089e637c5a4

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Can't access the internet - easy question for the experts! (ASA 5510)

    Dear all

    I can't access internet from my home network!

    I don't know why!

    Router:

    Ethernet f0/0 interface: 195.xxx.xxx.17/29 (to connect to the router) IP

    THE ASA NETWORK

    The external interface e0/0: 195.xxx.xxx.18/29 IP (to connect to the router)

    Internal interface: e0/1: IP 10.10.100.1 mask 255.255.252.0

    The ASA configuration

    ASA Version 8.0 (2)

    !

    ciscoasa hostname

    domain.com domain name

    enable encrypted password xxxxxxxxxxxx

    names of

    DNS-guard

    !

    interface Ethernet0/0

    nameif Interface_to_cisco_router

    security-level 0

    IP address 195.xxx.xxx.18 255.255.255.248

    !

    interface Ethernet0/1

    nameif Int_Internal_domain

    security-level 100

    address 10.10.100.1 IP 255.255.255.0

    !

    interface Management0/0

    nameif management

    security-level 100

    IP 192.168.1.1 255.255.255.0

    management only

    !

    xxxxxxxxxxxxx encrypted passwd

    boot system Disk0: / asa802 - k8.bin

    passive FTP mode

    clock timezone WEST 0

    clock summer-time WEDT recurring last Sun Mar 01:00 last Sun Oct 02:00

    DNS domain-lookup Interface_to_cisco_router

    DNS domain-lookup Int_Internal_domain.com

    DNS server-group DefaultDNS

    Server name 195.22.0.136

    Server name 195.22.0.33

    domain.com domain name

    permit same-security-traffic intra-interface

    object-group Protocol TCPUDP

    object-protocol udp

    object-tcp protocol

    Interface_to_router_Cisco_access_in list extended access allowed object-group TCPUDP any any eq field

    Interface_to_router_Cisco_access_in list extended access permit tcp any any eq www

    pager lines 24

    emergency logging level list Registo_eventos_william

    emergency logging list level Registo_eventos_william class vpn

    asdm of logging of information

    exploitation forest-address recipient [email protected] / * / critical level

    management of MTU 1500

    MTU 1500 Interface_to_router_Cisco

    MTU 1500 Int_Internal_domain

    ICMP unreachable rate-limit 1 burst-size 1

    ASDM image disk0: / asdm - 602.bin

    don't allow no asdm history

    ARP timeout 14400

    Global interface (Interface_to_router_Cisco) 101

    NAT (management) 101 0.0.0.0 0.0.0.0

    Access-group Interface_to_router_Cisco_access_in in the Interface_to_router_Cisco interface

    Route 0.0.0.0 Interface_to_router_Cisco 0.0.0.0 195.xxx.xxx.17 1

    Timeout xlate 03:00

    Timeout conn 01:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02

    Sunrpc timeout 0:10:00 h323 0:05:00 h225 mgcp from 01:00 0:05:00 mgcp-pat 0:05:00

    Sip timeout 0:30:00 sip_media 0:02:00 prompt Protocol sip-0: 03:00 sip - disconnect 0:02:00

    Timeout, uauth 0:05:00 absolute

    dynamic-access-policy-registration DfltAccessPolicy

    Enable http server

    http 10.10.100.0 255.255.255.0 Int_Internal_domain

    http 10.10.10.0 255.255.255.0 management

    http 195.xxx.xxx.16 Interface_to_router_Cisco 255.255.255.248

    http 192.168.1.0 255.255.255.0 management

    No snmp server location

    No snmp Server contact

    Server enable SNMP traps snmp authentication linkup, linkdown cold start

    No encryption isakmp nat-traversal

    Telnet 10.10.100.0 255.255.255.0 Int_Internal_domain

    Telnet timeout 5

    SSH timeout 5

    Console timeout 0

    dhcpd address 10.10.100.20 - 10.10.100.250 Int_Internal_domain

    dhcpd dns 10.10.100.2 195.22.0.136 interface Int_Internal_domain

    dhcpd lease interface 345600 Int_Internal_domain

    dhcpd domain domain.com Int_Internal_domain interface

    enable Int_Interna_domain dhcpd

    !

    a basic threat threat detection

    Statistics-list of access threat detection

    !

    class-map inspection_default

    match default-inspection-traffic

    Thanks in advance

    MP

    Hi MP,.

    Based on the configuration below, only traffic since the possible management interface to access the internet.

    Global interface (Interface_to_router_Cisco) 101

    NAT (management) 101 0.0.0.0 0.0.0.0

    You must include your inside interface in the nat statement if you want to have the traffic within the internet go.

    Example:

    NAT (Int_Internal_domain) 101 0.0.0.0 0.0.0.0

    Kind regards

    Arul

    * Rate pls if it helps *.

  • To access the icons of InDesigns for custom scripts

    Hi all

    I think remember me a moment ago see a PDF file that had all the icons that uses InDesign and an access method and use them in my own custom scripts.

    I went through all my PDF resources which in have accumulated over the years and can't seem to find it. \

    Someone at - it a PDF file that contains this information, or resource online for this?

    Thank you very much


    Roy

    You can find a PDF catalog (Peter Kahrel site):

    Icon catalog

    Jarek

  • I bought jointly, Priemer elements and Photoshop elements. I downloaded photoshop successfully. How to access the Web page download for elements of Prime Minister?

    I bought jointly, Priemer elements and Photoshop elements. I downloaded photoshop successfully. How can I get access to the

    Download the Web page for the elements of Prime Minister?

    Garyl21385743 what version of Premiere Elements you are wanting to download?  You can download the latest versions of Premiere Elements to products download Premiere Elements | 10, 11, 12, 13.  You can also find links to the installation files for most retail securities of Adobe Creative Software to to other downloads.

  • How can I access the buttons on mask for effect?

    I found this video for a 'novelty' that allows you to create a mask on an effect. (See link below)

    However, the mask of "buttons" says this video should be available by virtue of the 'mosaic' (or other), the effects do not show up for me. I use the first Pro CC... Why don't I have access to this feature?

    Thank you!

    How a face moving with masking and tracking the blur | Adobe first Pro CC tutorials

    You need CC2014 for these masks.

  • To access the colors of pixels for 2 layers

    Hello

    I know I'm probably missing something but I can't seem to get my head around the access of what are the individual pixels of color.

    I guess I should briefly describe what I try to do so here. I need to make a plugin photoshop for a college project. The required functionality was provided to me in the form of an external dll that I need to call. Among the settings needed to do this are arrays linear unsigned char for all two images which have values for each pixel dependent on their colors. The plan is to have to be the image that the user wants to change the background layer and a second layer where the indcates of the user what they want change by lines of different colors. So, I need to create these tank tables based on the pixel values. Background it is simply a case of store colors as unsigned characters and the other will require the assignment of specific numbers based on the colors.

    What I read ReadPixelsFromLevel (...) function seems to be my best bet, even if I'm wrong here, but I'm not sure what to do with the destination once the values have been read it.

    Any idea would be appreciated as my deadline is ever closer and my progress has stalled a bit.

    Thank you.

    Structure of PixelMemoryDesc (which is the destination type) has a field named 'data', hence, you get the pixel values after calling ReadPixelsFromLevel.

    the colors of the pixels, to climb this pointer to what you need, for example.

    UInt8 * data = static_cast(pixelMemoryDesc.data);

  • To access the values of checkbox for the treatment

    OK, this topic has probably been beaten to death here, but I can't find relevant discussions or sort of do what I do work. Basically I have a report with a list of entries that can be added to a table. This table can be found be a "join table" which allows for a many-to-many join with the primary keys of the installation of two related tables in a primary key composed for the junction table.

    I have this process in the page that is supposed to make the appropriate insertion:
    -- insert or update assignment requests
    -- loop through the rows and do an insert for each selected row
    BEGIN
     FOR i in 1..apex_application.g_f01.count LOOP
      -- do an insert based on the selected rows
      insert into itil_svc_aud_join (service_id, audience_id, consumer, can_order)
      values(:P52_SVC_ID, apex_application.g_f01(i), apex_application.g_f02(i), apex_application.g_f03(i));
     END LOOP;
    END;
    : P52_SVC_ID is a popup LOV that saves its state value, g_f01 is a checkbox in the first column of the table, g_f02 and g_f03 are additional columns that I create in the report running through functions apex_item.checkbox.

    To this, the insert very well, it is simply not put in the values that the user could have selected the second and third boxes.

    Here's my query to create the report.
    select 
    apex_item.checkbox(1, b.audience_id) chk,  
     b.name audience, b.comments,
     apex_item.checkbox(2,0) cons_chk,
     apex_item.checkbox(3,0) order_chk
    from  itil_svc_audience b
    where  b.active = 'Y'
    and b.audience_id not in 
     (select audience_id from itil_svc_aud_join 
      where service_id = :P52_SVC_ID)
    As you can see from this that the second and third boxes are not an actual table columns, I just need them out there to get the change in status of the user during execution. Do a query of the join table is not an option because the records do not exist right now in this table.

    In any case, the point is that my insert do not enter values of the tables g_f02 and g_f03 application and forward them correctly. It's driving me crazy. Do I have to check the State of the people before you run the insert operation? I think I've done this before, but for the life of me can not find out how to get these values in the table. Any help?

    Earl

    Hi Earl

    I am happy that it works, although I'm not 100% convinced that your changes would work in all cases. Make sure you give him a good beating and test all possibilities. In addition, with 3 separate DML instructions I guess you should consider blocking update records.

    Shunt

  • cannot access the web site driver for fingerprint sensor driver sp52354.exe

    Re HP model dv7-4280us, Win 7 Home Premium.  Caan can't discover fingerprint sensor.  I can't download thedriver-ACCESS web site.

    Hello

    You can download directly from the following link:

    http://ftp.HP.com/pub/SoftPaq/sp52001-52500/sp52354.exe

    Kind regards.

  • HP folio 13: can't remember the password to access the reader to haerd for a Folio 13 HP

    Greetings,

    I can't boot my laptop because I forgot the password of BIOS disk hard access (8 charaters)... How stupid can have reason why?

    Help

    Jean-Pierre

    Hello

    The password screen, press enter 3 times and you will receive a 'stop - code' and enter this code on the site below.

    http://BIOS-PW.org/

    Kind regards

    DP - K

  • How to access the old movie effect for Windows Live Movie Maker

    How can old age for Windows Live Movie Maker movie effect - I get?

    Hello

    It would be really nice if someone could answer my question very soon! I need to do a presentation for the 80th birthday of my Nan :)

    In the old Windows Movie Maker, I think it is XP, there has been an effect called the 'Age of the Film' effect, old He gave the video/photo a grainy effect, old movie. Personally, I liked using it, and now in Windows Live Movie Maker, he never saw. Is there a way I can download, or something?

    S ' PLEASE help us!

    Ask for more details if necessary =]

    Thankyouuu

    Hi Lexx6,

    We do not have the same Visual effects available in Windows Live Movie Maker. There are various other effects black and white available with different shades. Follow the link for more information.

    http://windowslive.com/desktop/MovieMaker

    Alternatively, you can leave your comments in the below given link

    https://connect.Microsoft.com/?WA=wsignin1.0

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Access the to-do list for BPEL PM. Unable to open a session

    Hi all

    Currently, we have installed BPEL PM 10.3.4 on weblogic 9.2 application server and have no idea of the username and the password to connect to the app in the task list.

    I used the standard installation given by oracle doc and BEPL PM uses as default id and password weblogic.
    The good news is that the console and BPEL PM admin use weblogic/weblogic as the user name and password.
    Unfortuantely the same username and password does not work for worlistapp.

    Can I find the username and pass a file any? or you can give me some advice more to solve the problem.
    I used the userid/pass following (admin/welcome, oc4jadmin/eu1 or weblogic/weblogic admin/eu1)

    http://hostname:9700 / integration/worklistapp/Login

    Try jcooper/eu1 or jcooper/weblogic

    see you soon
    James

Maybe you are looking for