Get a picture of a multi-dimentional array in a function

Don't know how to explain it, but here, first of all, I can't go beyond. Also had this problem with anything else I've tried.

ReferenceError: Error #1056: Cannot create property 0 on Number.

I googled and found on about automatically declare instances of point, which was very good, I had the box checked.

Basically, he is unable to even the simplest. I have this function:

function getInfoOf(i) { // enemy count, info count

    var _info:Array = new Array(3, 6); 
    // 0 is you
    _info[0,Const.MAXHP] = 500;
    _info[0,Const.CURRENTHP] = 500;
    _info[0,Const.LEVEL] = 5;
    _info[0,Const.EXP] = 5500;
    _info[0,Const.NAME] = "You";
    _info[0,Const.LINKEDMC] = "NONE";
    // then a few more _info's.
}

Then I didn't try everything in their power to operate, it stripped so no return. In the code, in the init() of the project part (called once only), so getInfoOf (0) and tried all the other numbers. I get this error and cannot for the life of me find out what's wrong (I also tested the 'Const'. they are integers, and I tested using numbers instead of those.) Still the same error, it only disappears I does not call the function at all.

Any help would be greatly appreciated.

Thank you.

Post edited by: brokenhope The table is actually (3.6), which has messed up.

Once again, to access an array element (for example, the last), use:

_info [2], [5] = "whatever";

NOT

    info[0,5] = 0;

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Waveform WebGraph Interaction

    My goal is to create a graph of waveform with the following criteria. Click/double click on the chart to draw the cursor at the nearest location.Draw a rectangle to zoom.Indicate a way to zoom out. With the code below, I can double click to draw the

  • Aspire V5 431P F2 is not BIOS and does not start

    Hello I made a change in the BIOS to trying to boot a linux live cd (off start secure and changed inheritance) and the system does more boot windows. I am not surprised by this, but I can't enter the BIOS put right my changes. The screen "Press F2" i

  • Keyboard only works in the administrator account.

    Original title: on my administrator account, keyboard works fine, when I go on a standard account on my computer, I can connect with the password, and then the keyboard does not work?

  • Administrator account has limited privileges

    original title: administrator account My Windows Vista user account is listed as type of administration.  However, a few changes to the program are not allowed.  Why and how can I obtain the unrestricted privileges.

  • IPS-4240 design question

    I have two IPS 4240 s that can be placed between our internal network and our extranet firewall. The game of firewall is your pair of standard assets/ASA-5520 switch connected to both switches. Q1 - if I'm not worried about atomic attacks, is there a