# Referring to movieclip in button

**URL:** <https://forum.kirupa.com/t/referring-to-movieclip-in-button/176634>\
**Category:** Uncategorized\
**Created:** [January 25, 2006, 6:42pm UTC](https://forum.kirupa.com/t/referring-to-movieclip-in-button/176634 "2006-01-25T18:42:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![killerwhale65](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@killerwhale65](https://forum.kirupa.com/u/killerwhale65)\
**Post date:** [January 25, 2006, 6:42pm UTC](https://forum.kirupa.com/t/referring-to-movieclip-in-button/176634/1 "2006-01-25T18:42:54Z")

</div>

hi,

i was using this function

```auto
this.onEnterFrame = function() { 
 if (picture._alpha>50) {
  picture._alpha -= 10; 
 }
}; 

```

for a movieclip on the parent level, and it was working fine.

However i need this movieclip to be in a button.

What do i have to change in the coding for that to work?

thanks!
