# Loading swfs into containers

**URL:** <https://forum.kirupa.com/t/loading-swfs-into-containers/77861>\
**Category:** Uncategorized\
**Created:** [January 31, 2005, 2:15am UTC](https://forum.kirupa.com/t/loading-swfs-into-containers/77861 "2005-01-31T02:15:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spastic](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@spastic](https://forum.kirupa.com/u/spastic)\
**Post date:** [January 31, 2005, 2:15am UTC](https://forum.kirupa.com/t/loading-swfs-into-containers/77861/1 "2005-01-31T02:15:37Z")

</div>

I’ve been trying the tutorial for loading external swfs, with the following code:

but.onPress = function () {  
\_root.createEmptyMovieClip(“container”, 1);  
loadMovie(“loaded.swf”, “container”);  
container.\_x = 150 ;  
container.\_y = 20 ;  
}

But it just doesn’t work. The button ‘but’ has an ‘onrelease’ action–is this affecting the loading?
