# Problem with buttons in loop

**URL:** <https://forum.kirupa.com/t/problem-with-buttons-in-loop/305141>\
**Category:** flash\
**Created:** [February 19, 2010, 5:29pm UTC](https://forum.kirupa.com/t/problem-with-buttons-in-loop/305141 "2010-02-19T17:29:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NS05](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ns05/32/2205_2.png) [@NS05](https://forum.kirupa.com/u/NS05)\
**Post date:** [February 19, 2010, 5:29pm UTC](https://forum.kirupa.com/t/problem-with-buttons-in-loop/305141/1 "2010-02-19T17:29:33Z")

</div>

I’m new to AS3 and I’m trying to redo all of my interaction templates that I have in AS2 as AS3 and make them more streamlined and on 1 frame.

This one has 5 statements with true and false.

I have the interaction working correctly but have run into 2 problems I was hoping someone could help me with.

Problem 1: I cant figure out how to have the buttons become inactive after the done button is pressed and the interaction is over.

Problem 2: I’m using an array and loop for the buttons so I didnt have to code each one individually which is working fine except I’ve noticed that if I have a nested movieclip inside the movieclip that is a button it doesnt work. That means that the box inside my button (that the checkmark appears on when clicked) is a graphic instead of a movieclip. The problem is that I wanted it to be a movieclip so that I could target it inside my button and change the color with code for my rollover. I’m not sure what the work around is here or why I cant have a nested movieclip.

I’ve attached the FLA file in a zip file.

These are 2 problems that I’m going to run into on all of my interactions so any help is VERY much appreciated!
