# Array accesing problem

**URL:** <https://forum.kirupa.com/t/array-accesing-problem/148020>\
**Category:** Uncategorized\
**Created:** [May 16, 2005, 2:54pm UTC](https://forum.kirupa.com/t/array-accesing-problem/148020 "2005-05-16T14:54:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gafitescu](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@gafitescu](https://forum.kirupa.com/u/gafitescu)\
**Post date:** [May 16, 2005, 2:54pm UTC](https://forum.kirupa.com/t/array-accesing-problem/148020/1 "2005-05-16T14:54:08Z")

</div>

Another problem …

I put all my Movie Clips on an array and I can’t access it very good

onEnterFrame = function()  
{  
for (var j = 0; j\<shape.length; j++)  
{

forma[j].onPress=function()  
{  
this.startDrag();

}

forma[j].onRelease=function()  
{  
this.stopDrag()  
}

// a delete buuton  
deleteb.onRelease = function()  
{  
shape[j].removeMovieClip()  
}

It removes the last movie clip and other actions that I applied to those mvoie clip the last movie clip is always selected.Of course j is initialized with array.lenght How can I access it in a different way?  
}
