# Movies in a Library

**URL:** <https://forum.kirupa.com/t/movies-in-a-library/59242>\
**Category:** flash\
**Created:** [July 29, 2004, 3:39pm UTC](https://forum.kirupa.com/t/movies-in-a-library/59242 "2004-07-29T15:39:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sim085](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Sim085](https://forum.kirupa.com/u/Sim085)\
**Post date:** [July 29, 2004, 3:39pm UTC](https://forum.kirupa.com/t/movies-in-a-library/59242/1 "2004-07-29T15:39:48Z")

</div>

Hi to all!

I have created an indipendent movie, and I imported this movie inside the library of a new swf file. Now I need to load it from inside the library to my frames during runtime. What I have is a set of buttons, and when the user clicks on one of the buttons this movie should be loaded from the library to my frames!!  
Does anybody know how to do this, or whether it can be done?

Thanks to all in advance  
Sim

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 29, 2004, 3:58pm UTC](https://forum.kirupa.com/t/movies-in-a-library/59242/2 "2004-07-29T15:58:57Z")

</div>

in the library pane selec your movie clip and choose properties, select export for runtime sharing or something like that then on your button use the code attachmovie

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 29, 2004, 5:26pm UTC](https://forum.kirupa.com/t/movies-in-a-library/59242/3 "2004-07-29T17:26:13Z")

</div>

The attachMovie syntax is like this:

attachMovie(“Name of symbol in Library”, “give it a new instance name here”, level);

ex.

attachMovie(“Symbol 1”, “symbol\_1”, 1);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 29, 2004, 6:09pm UTC](https://forum.kirupa.com/t/movies-in-a-library/59242/4 "2004-07-29T18:09:25Z")

</div>

Thanks I’ll try that! 🙂
