# Loading movieclips onPress=function tutorial

**URL:** https://forum.kirupa.com/t/loading-movieclips-onpress-function-tutorial/205423
**Category:** Uncategorized
**Created:** [October 29, 2006, 2:00pm UTC](https://forum.kirupa.com/t/loading-movieclips-onpress-function-tutorial/205423 "2006-10-29T14:00:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![buffy](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@buffy](https://forum.kirupa.com/u/buffy)
#### Post date: [October 29, 2006, 2:00pm UTC](https://forum.kirupa.com/t/loading-movieclips-onpress-function-tutorial/205423/1 "2006-10-29T14:00:08Z")

</div>

Hi I am trying to use the code in one of the tutorials which loads a movieclip.  
I need to load about 10 clips using the method below, but I can only get one to load. I will also need to make each of them draggable.  
Any help greatly appreciated.  
Ta  
Buff.

```auto

 
but.onPress = function () 
{
 _root.createEmptyMovieClip("container", 1);
 loadMovie("square.swf", "container");
 container._x = 150 ;
 container._y = 20 ;
}

```
