# Remove movie problem

**URL:** <https://forum.kirupa.com/t/remove-movie-problem/226472>\
**Category:** Uncategorized\
**Created:** [May 21, 2007, 5:55pm UTC](https://forum.kirupa.com/t/remove-movie-problem/226472 "2007-05-21T17:55:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnPopes](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JohnPopes](https://forum.kirupa.com/u/JohnPopes)\
**Post date:** [May 21, 2007, 5:55pm UTC](https://forum.kirupa.com/t/remove-movie-problem/226472/1 "2007-05-21T17:55:18Z")

</div>

hey i have a movie called with:

```auto
 
_root.attachMovie("biography", "biography", _root.mylogo.getDepth()-1, {_x:Stage.width/2, _y:Stage.height/2});

```

and within each i have a close button with:

```auto
 
close_bt.onPress = function() {
 unloadMovie(_root.biography);
};

```

but now i have a problem, im trying to use:

```auto
 
if (!_root.biography) {
  _root.attachMovie("biography", "biography", _root.mylogo.getDepth()-1, {_x:Stage.width/2, _y:Stage.height/2});
 }

```

to call the move again if there isnt already an instance of it but it only works the first time the movie was called, it wont work after i use the close button to unload the movie…

any thoughts???
