# Array length

**URL:** <https://forum.kirupa.com/t/array-length/195842>\
**Category:** Uncategorized\
**Created:** [August 3, 2006, 3:03pm UTC](https://forum.kirupa.com/t/array-length/195842 "2006-08-03T15:03:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luna](https://avatars.discourse-cdn.com/v4/letter/l/9fc348/32.png) [@Luna](https://forum.kirupa.com/u/Luna)\
**Post date:** [August 3, 2006, 3:03pm UTC](https://forum.kirupa.com/t/array-length/195842/1 "2006-08-03T15:03:40Z")

</div>

Hello…I’m having the following problem:

* * *

## files = new Array(); lv = new LoadVars(); lv.onLoad = function() { filelist = this.filelist; files = filelist.split(","); c = files.length-1; for (a=0; a\<c; a++) { trace©; } }; lv.load(“a2.txt”); total = c;

why is ‘total’ not getting the value of ‘c’? It should have the number of the length of the array…

if anybody can help?
