# Array Problem

**URL:** <https://forum.kirupa.com/t/array-problem/198478>\
**Category:** Uncategorized\
**Created:** [August 25, 2006, 11:55am UTC](https://forum.kirupa.com/t/array-problem/198478 "2006-08-25T11:55:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daytonatkf](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@daytonatkf](https://forum.kirupa.com/u/daytonatkf)\
**Post date:** [August 25, 2006, 11:55am UTC](https://forum.kirupa.com/t/array-problem/198478/1 "2006-08-25T11:55:06Z")

</div>

in the main file, i create an array named Q4 for 40 item, so it is Q4[0] to Q4[39], then i use attachmovie to insert few movie clips (using looping), this movie clips name is ‘pass’ + i. i need to read the value of the array from the ‘pass+i’ movie clip, but it doesnt work, this is the code

ctn=random(40);  
\_global.Q4[ctn] += 1;

any idea of it? everytime the ctn repeat the same number, i need to add one (1) in the same array, e.g if Q4[1] appear for 3 time, then the value for Q4[1] = 3. Thanks for reply…
