2 Replies Latest reply on Jul 30, 2010 7:49 AM by VRPDeveloper

    Set label text to value from Array Collection

    djh88ukwb Level 1

      Hello all.

       

      If i had an array collection that looked like this

       

                  [Bindable] private var questionsArr:ArrayCollection = new ArrayCollection(
                          [{question:"What are your hobbies"},
                          {question:"What work experience do you have"},
                          {question:"How long have you lived in Wales"}]);

       

      How would i go about making a function that will change a Labels text value to that of the array collection in position 1.

       

      So what i want, is to have a button, that once clicked will run a function, that will change a Labels text value to "What are your hobbies".  Which is taken from the array ?

       

      Can anyone help me please?