# Dynamically loaded external .swf's with loadMovie();

**URL:** <https://forum.kirupa.com/t/dynamically-loaded-external-swfs-with-loadmovie/177679>\
**Category:** Uncategorized\
**Created:** [February 4, 2006, 12:52am UTC](https://forum.kirupa.com/t/dynamically-loaded-external-swfs-with-loadmovie/177679 "2006-02-04T00:52:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jookhouse](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jookhouse](https://forum.kirupa.com/u/jookhouse)\
**Post date:** [February 4, 2006, 12:52am UTC](https://forum.kirupa.com/t/dynamically-loaded-external-swfs-with-loadmovie/177679/1 "2006-02-04T00:52:07Z")

</div>

i have a button that when pressed passes a variable:

\_root.movieToLoad = “testAni”;

then the next movie clip thet “receives” the variables needs to play the external .swf in an empty movie clip… i have the code like so:

movieToLoad = eval(“external\_” + \_root.movieToLoad + “.swf”);  
emptyMovie\_mc.loadMovie(" + VARIABLE\_GOES\_HERE + ", “\_self”, “GET”);

of course it doesn’t work… how do i place a variable in that loadMovie?

thank you so much in advance!  
-cam
