Skip to main content
dalcde
Inspiring
August 11, 2009
Question

Error in Array

  • August 11, 2009
  • 1 reply
  • 593 views

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:

This topic has been closed for replies.

1 reply

dalcde
dalcdeAuthor
Inspiring
August 11, 2009

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.

kglad
Community Expert
Community Expert
August 11, 2009

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?