# Load movie from library into container

**URL:** <https://forum.kirupa.com/t/load-movie-from-library-into-container/166866>\
**Category:** Uncategorized\
**Created:** [October 23, 2005, 3:00pm UTC](https://forum.kirupa.com/t/load-movie-from-library-into-container/166866 "2005-10-23T15:00:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cedeno](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@cedeno](https://forum.kirupa.com/u/cedeno)\
**Post date:** [October 23, 2005, 3:00pm UTC](https://forum.kirupa.com/t/load-movie-from-library-into-container/166866/1 "2005-10-23T15:00:57Z")

</div>

I am trying to load a movie from the library into a container located in the main timeline. The button that loads this code is located inside a movie clip.

I used as a guide the following kirupa tutorials: [http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm)  
[http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

The problem is that the clip I want to load is not external, it is in the library. Please help me. Here is the actions I have for the on release state:

on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “contact”;  
\_root.container.attachMovie(“contact”, “contact”, 0);  
} else if (\_root.currMovie != “contact”)  
{  
if (\_root.container.\_currentframe \>=  
\_root.container.midframe) {  
\_root.currMovie = “contact”;  
\_root.container.play();

```
               }
      }

```

}
