# Problem with btn action ( inside/outside )

**URL:** <https://forum.kirupa.com/t/problem-with-btn-action-inside-outside/282451>\
**Category:** flash\
**Created:** [February 22, 2009, 11:15am UTC](https://forum.kirupa.com/t/problem-with-btn-action-inside-outside/282451 "2009-02-22T11:15:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashman2006](https://avatars.discourse-cdn.com/v4/letter/f/82dd89/32.png) [@flashman2006](https://forum.kirupa.com/u/flashman2006)\
**Post date:** [February 22, 2009, 11:15am UTC](https://forum.kirupa.com/t/problem-with-btn-action-inside-outside/282451/1 "2009-02-22T11:15:03Z")

</div>

Hi there

i am facing little problem here

first take a look at this action

```auto

on (release) {
 if (_root.currMovie == undefined) {
  _root.currMovie = "ab";
  container.loadMovie("ab.swf");
 } else if (_root.currMovie != "ab") {
  if (container._currentframe >= container.midframe) {
   _root.currMovie = "ab";
   container.play();
  }
 }
}

```

this action is applied on a button in the main time line and works well  
it didn’t work when i put this btn inside a movie clip

i think the error is in the location of the container

i tried \_root , this.\_parent

actually i don’t understand the difference between them

hope you help me to fix this

Thanks
