I need a Flash component developed that will allow a user to add and delete values in an Array while displaying the always up-to-date contents of the Array in a DataProvider Component.
The component is simple and will consist of the following.
A Text Input component in Flash where the user can enter data. The Text Input should be restricted to only accept the following characthers: _0123456789abcdefhijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVXYZ
A button that when clicked will add the data from the Text Input Component to the Array and Update the DataProvider with the new data. It will also clear the Text Input Field so it is ready for the next input.
A button that when clicked will delete a selected row in the DataProvider AND the Array. Basically a user should be able to select a row in the DataProvider - click the Delete button and then that data should be deleted from the Array and the DataProvider should be updated to show the current contents of the Array.
If the Delete Button is clicked and no row is selected in the DataProvider then nothing should happen.
If the Add Data button is clicked and no data is entered in the Text Input Component then nothing should happen.
The component should be programmed in AS3 and not by using classes. I prefer to have all the actions in a single keyframe on the timeline.
The DataProvider should only display one single column that contains the data in the Array. Label of the DataProvider Column is "Variable:"
I will provide an FLA file in the correct size and with the positions and sizes of the Text Input field, Buttons and DataProvider.