# Problem with grouping variables

**URL:** <https://forum.kirupa.com/t/problem-with-grouping-variables/230804>\
**Category:** flash\
**Created:** [June 29, 2007, 1:34am UTC](https://forum.kirupa.com/t/problem-with-grouping-variables/230804 "2007-06-29T01:34:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clinton](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@Clinton](https://forum.kirupa.com/u/Clinton)\
**Post date:** [June 29, 2007, 1:34am UTC](https://forum.kirupa.com/t/problem-with-grouping-variables/230804/1 "2007-06-29T01:34:22Z")

</div>

Hi all

Im guessing this is a really simple problem but can anyone help me with this issue. Basically i have a number of variables on stage labeled Q\_lvl\_1 through to 17. Basically what i want to do is to group these variables togather and turn the hand cursor off all these variables…  
rather than having to individually turn off the hand cursor for each variable.  
this is the code i have so far:

Hand\_off = new Array();  
Qag\_rooms = “Q\_gal\_”;  
for (var i = 1; i\<18; i++) {  
var currFocus = eval(Qag\_rooms+i);  
if (currFocus == undefined) {  
break;  
} else {  
Hand\_off.push(currFocus);  
}  
}  
for (var j = 0; j\<Hand\_off.length; j++) {  
//These variables are nested in 2 movie clips//  
QFloor.Q\_lvl\_1.Hand\_off [s].useHandCursor = false;  
};

any help would be greatfully appreciated!!!

Cheers  
Clinton
