Select and deselect all buttons to control list box with check boxes

I am using the two buttons on labeled select all deselect others all the. These two buttons will check either or unckeck the boxes to tick in a listbox control. I've included the code for the list of regions below. The two buttons are on a separate mxml file. They are labelled by functions id as "selectall" and "deselectall. I think I need to bind the buttons to an arrary you select or clear each checkbox in the list control. Any help you can give me would be great.

<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Canvas width = "166" xmlns:mx = " http://www.adobe.com/2006/mxml ' xmlns =" * ">
< mx:List width = "166" dataProvider = "{region}" >
< mx:itemRenderer >
< mx:Component >
< mx:Canvas >
< mx:CheckBox id = "complete" selected = "{data.selected}" click="data.selected=complete.selected"/ > "
< mx:Text id = "TaskName" x text = "{data.label ="23"} ' selectable ="false"/ >"
< / mx:Canvas >
< / mx:Component >
< / mx:itemRenderer >
< / mx:List >
< mx:Script >
<! [CDATA]

Test data for the usefulness of the CBA.
[Bindable]
public var regions: Array =]
{finished: false, label: ' Carolina/Tennessee'},
{finished: false, label: "Central Texas"},
{finished: false, label: "Florida"},
{finished: false, label: "Georgia/Alabama"},
{finished: false, label: "Great Plains"},
{finished: false, label: "Houston/Gulf Coast"},
{finished: false, label: "Illinois/Wisconsin"},
{finished: false, label: "Kansas and Missouri"},
{finished: false, label: 'Los Angeles'},
{finished: false, label: 'Mountain'},
{finished: false, label: "New England"},
{finished: false, label: "New York underground"},
{finished: false, label:' North CA/Nevada '},
{finished: false, label: "Ohio"},
{finished: false, label: "Pacific Northwest"},
{finished: false, label: "Pennsylvania"},
{finished: false, label:' Philadelphia Tri-St'},
{finished: false, label: "San Diego"},
{finished: false, label: "Southwest"},
{finished: false, label: 'Upstate New York'},
{finished: false, label: "Balt/Washington/Virg"}
];
[]] >
< / mx:Script >
< / mx:Canvas >

First, you must use an ArrayCollection collection and not a table:
var acRegions:ArrayCollection = new ArrayCollection (regions)

You will need to loop through the collection ArrayCollection and set the completed property.

Be sure to use the API of collection correct ArrayCollection to update properties for events will be issued to update the display.

Tracy

Tags: Flex

Similar Questions

  • Why don't apple just add a feature bit to select and deselect all at once?

    Hey, I received more than 2000 photos are of my collections in recent years and if I try to select one by one, or as said at times it would take me more than 20 minutes, why don't not you guys give us a simple option to select or deselct all movements at the same time.

    It is a forum for technical support to users. you do not discuss Apple, just other users. You can offer your comments Apple here.

  • I cannot click on the checkboxes of the fields I want to reset the reset form action.  It is only allowing to select all and deselect all.

    I cannot click on checkboxes to the fields I want to reset the reset form action (properties).  It is only allowing to select all and deselect all.  With the help of Acrobat 8 XI-Pro/windows.  When I try to deselect them only one field, it does not uncheck.  This is no longer an option?

    Click on a little out of the center of the box, or use the space bar.

  • How to select and deselect an existing path and how to make choices using?

    Hello

    I have created a path to the Master file.

    How to select and deselect this existing path and how to make the selection for the rest of the procedure?

    I talked about this script reference guide, I tried this: app.activeDocument.pathItems.getByName ("path of 1');

    But it does not work. Could you please help me on this?

    Thank you

    Rajiv.s

    I thank very you much for the help!

  • Command to refresh a calculated field when you select an option from the drop-down list box

    When my form user selects an option in a drop-down list box, the value in the field (in this case, Total) I would like to update, but it isn't.

    A radio button option box makes the Total-development field to automatic update when the user clicks on the radio button. But the drop-down list box is not updated Total (without clicking away from the field). I would like to add a command in the Combo Box to refresh the Total field when you selected the option to drop-down list box.

    Someone at - it a code (Javascript?) to get there.

    Thank you very much.

    You don't need a script, simply select the 'Value selected to validate immediately' checkbox on the Options tab of the dialog list box drop-down list box field properties.

  • 004 select or deselect all tracks

    Is there a way to select all the tracks in the timeline, or deselect everything at a quick glance? CMD + A and CMD + SHIFT + A only select or deselect which is highlighted in the timeline panel. I am trying to act on the signs of the track. And, as far as I know, I can't even simply lasso tracks.

    Martin

    OS X.9.5

    First Pro 2015

    Thanks Kevin, that got me here. I always forget to replace "Select" by "Toggle" in my research. For anyone seeking shortcuts keyboard in CC 2015, btw, this is ' toggle Audio all targets"and" AudioSource "and even for video." There seems to be a universal track button to select all.

  • How to add expand all trees and collapse all buttons tree in Oracle JDeveloper?

    Hello

    I want to add two buttons on my page. I got a tree and add two buttons to expand and collapse all tree nodes. When the user clicks on expand all the button he will develop any node of the tree, and when the user clicks on reducing all the button, it will collapse all the tree how...?

    I have JDeveloper 11 g R2 version...

    Put your tree in an af:panelCollection that has this feature out of the box.

    Timo

  • Must select and change all the type is defined in a specific font

    I'm working on my memory of brother-in-laws on the biology of the molecalar. It is very important in these types of documents, get all the names of some species and protein italicized. Unfortunately it manually set all those names in italics, instead of the use of character styles.

    I need some way to be able to select any italicized and assign a character style. Because the way in which this document of his is at least 140 pages A4 and the subject matter is way, way, way over my head, I need a way to automate the process.

    Y at - it a function or perhaps a script that automatically detects the type in a specific font and gives the possibility to assign a character style?

    Thank you

    I wrote a script to do exactly that - and replace all the exhibitors, indices, bold, bold italic, and a bunch more, with their Style of character equivalent. The script creates even all styles, that he needs.

    Download from http://www.jongware.com/binaries/preptext.zip - additional instructions and tips found in this same forum (search for "preptext").

  • Help select the value from a drop-down list box

    Hello

    I develop a script (in JavaScript) which will allow a user to select an export PDF presets (that are loaded in a drop-down list) and then export the InDesign file to PDF, by using the selected PDF preset.

    I have the combo fill properly and I am also able to export to PDF correctly, however I have a problem setting the preset has been selected by the user. Here are some of my code fragments:

    Drop-down list:

    with(borderPanels.add()) {

         pdfDD = dropdowns.add();

         sl = new Array();

         for (i = 0; i < app.pdfExportPresets.length; i++)

         sl.push(app.pdfExportPresets[i].name);

         pdfDD.stringList = sl;
         pdfDD.selectedIndex = 0;

    }

     

    ...

     

    myPreset = pdfDD.selectedIndex;

    In PDF format:

        // Open, Export, & Close
        for (i = myFileAmount; i >= 0; i--) {
            app.open(File(myFolderContents[i]));

            createHyperlinks();

            app.activeDocument.exportFile(
            ExportFormat.pdfType, File(myFolder.fsName + "/" + app.activeDocument.name.split(".indd")[0] + ".pdf"), false, myPreset);
            app.activeDocument.close(SaveOptions.no);
        }

    During the passage of myPreset, it is defined as 6 (the index from the drop-down list).  How can I set myPreset that the real value of what has been chosen?

    Thank you!

    In view of your code, you probably need something like:

    myPreset = app.pdfExportPresets.itemByName (pdfDD.stringList [pdfDD.selectedIndex]);

    @+

    Marc

  • How can I select and remove the net football behind the goalie with Photoshop CS5?

    Hello

    Could you please help me with the next case. I have a picture of a football match and I want to choose and remove the net behind the football (soccer) goalkeeper. Do you know what is the procedure for the selection and removal of net, in "clear" of the lens showing only the goalkeeper under objective?

    Thank you in advance,

    Petar

    Product: Photoshop CS5

    Hello Petar,

    You're in luck. Photoshop CS5 is the first version to come with Content Aware Fill. You can use this to clear transparent objects, such as your net. Try to take a look at this video, that should help you to do exactly that:

  • Select the item in the drop-down list box?

    Hello, I have a list box drop-down list box that contains numbers from 1 to 10. Normally, it will display "1" when the application starts, but how I put it in AS3 to show "3" instead?

    comboboxInstancename.selectedIndex = 2;

  • Network discovery does not 'on' when selected and recorded, all the answers?

    I have some very annoying problems with my new network set up.

    My network consists of a Belkin router type "n" (model F5D8236-4v2), the main PC with windows 7 32-bit OS, a wireless laptop XP, a machine of the PS3 and TV (model KDL 32EX403 =) Sony Bravia - hard wired to the router.

    I want movies stream from my PC to the TV. laptop and PS3.

    My PC (the principal server) see the laptop, TV, but not the PS3. He can see the files on the laptop and the laptop you will see the PC it cannot access any files or folders on the PC.

    The TV can not see the PC, laptop or PS3.so no films can be heard of these components on television.

    I tried everything that Microsoft and several forums have to offer, but to no avail.

    One thing I noticed when trying to find a configuration to mitigate the problem, it's that when you go to "Advanced sharing settings" and try to change the setting of 'Network discovery' on IT, and then save this setting, it is up to the STOP after trying to save.

    Please can someone help I'm quickly running out of hair to pull.

    Thank you

    Hello

    We will first try to turn on network discovery in Windows 7 for you to do:

    Go to: Control Panel---> Administrative---> Services-(search for SSDP DISCOVERY)---> right click Tools 'SSDP DISCOVERY'---> go to---> Set auto properties

    STEP 2: Control Panel---> administration tools---> Services-(search for the HOST of the UPNP DEVICE)---> right click 'HOST de UPNP DEVICE'---> go to---> Set auto properties

    You should be able to turn on network discovery

    Restart all of your devices, including your router.

    Let us know the progress

  • Is there a way to select and delete all unused layers?

    I found this issue somewhere on this forum (2008), I think that he remained unanswered.

    Maybe it's possible in CS5?

    I work with CS4 now (pc).

    Here is a workaround:

    In the contextual menu layers of Panel turn on "paste remembers layers".

    On the artboard, unlock all show all and then select all

    In the layers panel, select 'flatten the work. "

    delete all illustrations

    Dough

    Only layers with a work must return.

  • my browser and other programs keep selection and deselection on its own

    I have to keep clicking on the page I type on so I can type. tried to search the windows diagnostics repair and atm trying to check windows records the errors.

    Hello

    1. what web browser do you use?

    2 did you receive an error message?

    3. have you made changes on your computer?

    I suggest you to follow the methods and check.

    Method 1:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2:

    When you run an .exe on a Windows Vista-based or Windows 7 computer file, the file may start another program

    http://support.Microsoft.com/kb/950505

    Method 3:

    I suggest to download and install the Microsoft safety scanner and run the scan and check.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

  • Hotmail - my front, answer and reply to all buttons (or whatever they are called) have disappeared so I can't do more. How can I get them back... I'm a computer involved.

    My advance, answer and reply all buttons have disappeare from my Inbox how their return if I can do these things

    My advance, answer and reply all buttons have disappeare from my Inbox how their return if I can do these things

    Hey garywwolf222

    Here is the vista forums

    Try the repost in the hotmail link below forums

    http://www.windowslivehelp.com/product.aspx?ProductID=1

    Walter, the time zone traveller

Maybe you are looking for

  • ZBook 15u G2: is it possible to upgrade the G2 Zbook 15u from the 500 GB Samsung SSD 850 evo 500 GB SATA HARD disk?

    Turns out that the hard drive that I got this laptop when I bought it is not really meet my needs, and I'm looking to upgrade. I looked around, and the EVO of 850 SSD Samsung 500 GB seems a good choice for what I'm looking for. I just wanted to check

  • You can access time capsule iTunes library using the Airport express

    Hello I I have an Apple Airport express and listen to music from my iTunes library on my MacBook Pro. I have just bought a Time Capsule from Apple and saved my MacBook to this. I would like to listen to the music of my Time Capsule, as is always on.

  • WCS Lobby Ambassador and the user of the monitor

    I'm under our authentication WCS by ACS with GANYMEDE and it works fine.  However, I currently have my Help Desk Setup with a user of the monitor so that they can connect and view the WCS, but this does not give them the Ambassador Hall of course.  H

  • ACS dictionary file

    Hi Security Experts, I have a requirement to add a box of third-party (niksun device used to sniff the packets) as a radius client in ACS 4.2. I went through the configuration of niksun guide to see how it should be done. According to their documenta

  • black guy goes gray

    I'm having a problem with the quality in the title tool.Can someone try this experiment to see if you see the same result?Create a sequence of 1080p23.976 on the first layer put white mast. create then a new title to put on track 2.The title should b