3 Replies Latest reply on May 26, 2010 2:20 AM by Sebastien V.

    Error while Adding Elements in a ArrayCollection .

    kiran7881 Level 1

      Hi ,

      I have created a ArrayCollection and trying to add elements to it using ArrayCollection.addItem("NewElement");

      In the response it is giving me a compile error showing
      "Variable 'NewElement' is not defined "


      var myArrayCollection:ArrayCollection = new ArrayCollection();

      Can anybody please let me know how to resolve this ??

      Thanks in advance .