# Actionscirpt Array

**URL:** <https://forum.kirupa.com/t/actionscirpt-array/304269>\
**Category:** flash\
**Created:** [February 4, 2010, 4:39pm UTC](https://forum.kirupa.com/t/actionscirpt-array/304269 "2010-02-04T16:39:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paperwhale](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@Paperwhale](https://forum.kirupa.com/u/Paperwhale)\
**Post date:** [February 4, 2010, 4:39pm UTC](https://forum.kirupa.com/t/actionscirpt-array/304269/1 "2010-02-04T16:39:09Z")

</div>

Actionscript 2.0 CS3

Hey  
I want the button to rotate the selected movieclip in the array. Every movieclip in the array has the button with the same name.

every time i press the rotate button the ‘\_root.ho’ movieclip rotates unless i replace ‘note.\_rotation += 10;’ with ‘this.\_rotation += 10;’ then only the button inside the selected movieclip spins

Any help or thoughts would be great, thks

var notes = new Array();  
notes[0] = \_root.ho;  
notes[1] = \_root.ho2;  
notes[2] = \_root.ho3;  
notes[3] = \_root.ho4;  
notes[4] = \_root.ho5;  
notes[5] = \_root.ho6;

for (i in notes) {  
note = notes\*;  
note.right\_btn.onPress = function() {  
note.\_rotation += 10;  
};
