Tuesday, October 23, 2012

To Do list

Today I started working on the to do list. I started working in a separate flash builder file so I could get the functionality working. The first step is finding a way of add multiple items to a list on a button click and then adding the same items each time the button is pressed. I believe this will have to be done using an array. I remember having a brief encounter with array's back in first year coding but have never actually used them...

After asking a few people who each gave my an interesting metaphor to describe what an array is. Byron used a file cabinet while Alistair chose to use a coffee mug where one of the components in the array was a drop off coffee called Jim.

In the end I turned to tour de flex and found an example of a scroll list which used an array to control the items in the list. After looking at this I managed to get it so a text input field and and check box were added each time the button is pressed.

No comments:

Post a Comment