# Loading .swf file into empty container

**URL:** <https://forum.kirupa.com/t/loading-swf-file-into-empty-container/254734>\
**Category:** flash\
**Created:** [March 14, 2008, 6:17pm UTC](https://forum.kirupa.com/t/loading-swf-file-into-empty-container/254734 "2008-03-14T18:17:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![treff](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@treff](https://forum.kirupa.com/u/treff)\
**Post date:** [March 14, 2008, 6:17pm UTC](https://forum.kirupa.com/t/loading-swf-file-into-empty-container/254734/1 "2008-03-14T18:17:01Z")

</div>

I am using the following code to put a .swf file into an empty container when the page loads. This works fine in flash, but when I put it into dreamweaver and upload it to the web site, it does not work – the container does not load when the page comes up.

Do I need additional code (or something else) to have the browser read the command??

\_root.container.createEmptyMovieClip(“container”,1);  
loadMovie(“test\_container.swf”,“container”);
