# Calling Global Function from embedded movie clip

**URL:** <https://forum.kirupa.com/t/calling-global-function-from-embedded-movie-clip/328414>\
**Category:** flash\
**Created:** [May 15, 2012, 6:25pm UTC](https://forum.kirupa.com/t/calling-global-function-from-embedded-movie-clip/328414 "2012-05-15T18:25:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lletdownl](https://avatars.discourse-cdn.com/v4/letter/l/6a8cbe/32.png) [@lletdownl](https://forum.kirupa.com/u/lletdownl)\
**Post date:** [May 15, 2012, 6:25pm UTC](https://forum.kirupa.com/t/calling-global-function-from-embedded-movie-clip/328414/1 "2012-05-15T18:25:06Z")

</div>

Hi Guys,  
I have what i hope is a pretty simple question. I have a standard “ButtonClass” global function which is use for all buttons. Its a rollover function that fades in an out on rollover and rollout. However, when i try to call this function from a button embeded within another button, the function no longer works. Can anyone point me in the direction of a global function which works on an embedded movie clip for something as simple as rollover actions?

Thanks
