This content has been marked as final. Show 4 replies
There are many ways to do this.
Just one possible way is:
for your accept button, have it call an actionscript function to
loop through the arraycollection, and set the enabled property of whatever components you are using to enter your one character to false if there is a value.
private function approveSelection():void
for (var x:int =0; x < yourarray.length; x++)
if (yourarray[x].yourvalue != "")
correspondingComponent.enabled = false;
Thanks for your response. I do know how to update the array. What I do want is a way to display the array as cells and allow a user to change an entry. This while minimizing the code, i.e. using a loop.
Note that the Array API will not dispatch the events to automatically update the DG, if you plan to update the array programatically. ArrayCollection will.
Note that your requirement to enable/disable cells will require a custom item renderer,
use an "itemEditBeginning" handler:
that example is a bit complex, but the "itemEditBeginning" event and the "event.preventDefault();" are the key points