# Mouse enable loop?

**URL:** <https://forum.kirupa.com/t/mouse-enable-loop/310502>\
**Category:** Uncategorized\
**Created:** [June 11, 2010, 4:23pm UTC](https://forum.kirupa.com/t/mouse-enable-loop/310502 "2010-06-11T16:23:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackout188](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@blackout188](https://forum.kirupa.com/u/blackout188)\
**Post date:** [June 11, 2010, 4:23pm UTC](https://forum.kirupa.com/t/mouse-enable-loop/310502/1 "2010-06-11T16:23:42Z")

</div>

I hardcode this for now, is there any way to do the following code in a loop? All helps are appreciated. Thank you

function enable(){  
cho1.mouseEnabled = true;  
cho2.mouseEnabled = true;  
cho3.mouseEnabled = true;  
cho4.mouseEnabled = true;  
cho5.mouseEnabled = true;  
cho6.mouseEnabled = true;  
cho7.mouseEnabled = true;  
cho8.mouseEnabled = true;  
cho9.mouseEnabled = true;  
cho10.mouseEnabled = true;  
cho11.mouseEnabled = true;  
cho12.mouseEnabled = true;  
cho13.mouseEnabled = true;  
cho14.mouseEnabled = true;  
}
