# \[Flash 8\]Movieclips Inside Buttons

**URL:** <https://forum.kirupa.com/t/flash-8-movieclips-inside-buttons/235180>\
**Category:** flash\
**Created:** [August 9, 2007, 2:27am UTC](https://forum.kirupa.com/t/flash-8-movieclips-inside-buttons/235180 "2007-08-09T02:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StolenFED](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@StolenFED](https://forum.kirupa.com/u/StolenFED)\
**Post date:** [August 9, 2007, 2:27am UTC](https://forum.kirupa.com/t/flash-8-movieclips-inside-buttons/235180/1 "2007-08-09T02:27:08Z")

</div>

Hey Kirupa,

I’m working on a game right now, and I’m having a bit of trouble. I would like it to be if a certain Boolean, lets call it \*variable1 \*is equal to _true_, then Movieclip _“disk”_ (which is located inside a button) goes to the next frame.

I set up the variable as such:

```php
var variable1:Boolean = false;

```

I then set up a function:

```php
function checkDisk() {
if (variable1 == false){
mybutton.mymc.nextFrame();
}
}

```

I put the function in an event handler, but when I tested it, and performed the action which sets variable1 equal to true, the disk stayed how it was.

I tested it on a movieclip not inside a button and it worked fine. Any suggestions?
