# Array actions error

**URL:** <https://forum.kirupa.com/t/array-actions-error/194591>\
**Category:** Uncategorized\
**Created:** [July 24, 2006, 7:34pm UTC](https://forum.kirupa.com/t/array-actions-error/194591 "2006-07-24T19:34:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this/32/669_2.png) [@this](https://forum.kirupa.com/u/this)\
**Post date:** [July 24, 2006, 7:34pm UTC](https://forum.kirupa.com/t/array-actions-error/194591/1 "2006-07-24T19:34:26Z")

</div>

CLIP1, CLIP2, CLIP3 AND CLIP4 BE THE INSTANCE NAME FROM 4 DIFFERENT MOVIE CLIPS… THE CODE BELLOW NOT WORK … ANY SUJESTIONS ?

[AS]  
var clipAr:Array = [“clip1”,“clip2”,“clip3”,“clip4”];  
for(q=0;q\<clipAr.length;q++) {  
var rAl:Number = Math.floor(Math.random() \* (100 - 70)) + 70;  
clipAr[q].\_alpha = 0;  
clipAr[q].alphaTo(rAl,1);  
clipAr[q].onRollOver = cOver;  
clipAr[q].onRollOut = cOut;  
}  
function cOver() {  
this.tween("\_y", this.\_y + 10, .5);  
}

function cOut() {  
this.tween("\_y", this.\_y - 10, .5);  
}  
[/AS]
