2 Replies Latest reply on Aug 10, 2009 10:26 PM by kglad

    Error in Array

    dalcde Level 1

      Why can't I make an array like this:

       

       

          attack1 = new Array(3, 1, 5);
          attack2 = new Array(4, 0, 0);
          attack3 = new Array(3, 0, 0);
          attack4 = new Array(1, 0, 0);
          attack5 = new Array(5, 200, 0);
          attack6 = new Array(1, 10, 0);
          attack7 = new Array(1, 10, 0);
          attack8 = new Array(1, 5, 1);
          attack9 = new Array(1, 3, 1);
          attack10 = new Array(1, 3, 1);
          attack11 = new Array(1, 3, 1);
          attack12 = new Array(1, 5, 1);

       

      There will be an error once I publish. I am using Chinese Flash, and the error message is something like this:

        • 1. Re: Error in Array
          dalcde Level 1

          The error message is something like this ( translated )

          What was found is Array, but  what it needs is attack1:

              attack1 = new Array(3, 1, 5);

          What was found is Array, but what it needs is attack2

              attack2 = new Array(3, 1, 5);

           

          etc.

          • 2. Re: Error in Array
            kglad Adobe Community Professional & MVP

            there's no error in defining all those arrays.  though i'm not sure that's useful.

             

            what are you trying to do?  and what error message do you see?