2 Replies Latest reply: Apr 9, 2012 8:14 AM by Rothrock RSS

    ReferenceError: Error #1037: Cannot assign to a method every on Array.

    Rothrock Community Member

      This code causes a runtime Error#1037 when publishing in AS3, but not in AS2.

       

      var myArray:Array=[];

      myArray["every"]=[];

       

      I'm guessing that is because every is an already defined method in the Array class.

       

      Should I be using the dictionary class instead? Any good tips on that? Anything I should really know?