# Checking if button is pressed in nested movie problem

**URL:** <https://forum.kirupa.com/t/checking-if-button-is-pressed-in-nested-movie-problem/187121>\
**Category:** Uncategorized\
**Created:** [April 26, 2006, 8:19pm UTC](https://forum.kirupa.com/t/checking-if-button-is-pressed-in-nested-movie-problem/187121 "2006-04-26T20:19:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsunchoo](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tsunchoo](https://forum.kirupa.com/u/tsunchoo)\
**Post date:** [April 26, 2006, 8:19pm UTC](https://forum.kirupa.com/t/checking-if-button-is-pressed-in-nested-movie-problem/187121/1 "2006-04-26T20:19:05Z")

</div>

So i am trying to use an OnRelease on a button in a nested movie but check if it’s been pressed from the parent timeline…i have used the target path button and it got me this but it doesn’t work…

this.titletabs.evolution.onRelease = function() {  
this.\_parent[current].gotoAndPlay(2);  
this.\_parent[current].alpha(5, 0);  
};

the button instance is **evolution** in a movie instance called **titletabs** - any ideas why this doesn’t work - thanks a lot…

🙂
