The number of items inside an array

Hi everyone,

I have an Array where in position 0, there are two items “name1” and “name2”, then in position 1, there is only 1 item “name3”, and position 2 there is only 1 item “name4”.

now when I trace like this:

trace(exampleArray[0].length)

the result is 2;

but when I trace like this:

trace(exampleArray[1].length)

the result is 5;

I understand that on the second trace its counting the length of the item so its the number of letters that its returning. I’m just wondering how can I get it to return 1, which is the number of items in that position which is what I’m interested in.

Any help would be greatly appreciated

Thanks