# Loading dynamic swfs

**URL:** <https://forum.kirupa.com/t/loading-dynamic-swfs/175663>\
**Category:** Uncategorized\
**Created:** [January 16, 2006, 9:29pm UTC](https://forum.kirupa.com/t/loading-dynamic-swfs/175663 "2006-01-16T21:29:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cup\_of\_tea](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@cup\_of\_tea](https://forum.kirupa.com/u/cup_of_tea)\
**Post date:** [January 16, 2006, 9:29pm UTC](https://forum.kirupa.com/t/loading-dynamic-swfs/175663/1 "2006-01-16T21:29:12Z")

</div>

To load a swf, I tried using the following code

```auto
_root.createEmptyMovieClip("container", 1);
 loadMovie("amovie.swf", "container");
 container._x = 150 ;
 container._y = 20 ;

```

I noticed that the loading doesn’t work when amovie.swf contained this actionscript:

```auto
_root.createEmptyMovieClip("test", 1);
_root.test.lineStyle(2, 0xff0000, 100);
_root.test.moveTo(0,0);
_root.test.lineTo(100,350);

```

No errors were given but nothing appears. Any ideas?
