# I want to load an external swf, using a variable

**URL:** <https://forum.kirupa.com/t/i-want-to-load-an-external-swf-using-a-variable/221617>\
**Category:** Uncategorized\
**Created:** [April 5, 2007, 5:30pm UTC](https://forum.kirupa.com/t/i-want-to-load-an-external-swf-using-a-variable/221617 "2007-04-05T17:30:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtrace](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dtrace](https://forum.kirupa.com/u/dtrace)\
**Post date:** [April 5, 2007, 5:30pm UTC](https://forum.kirupa.com/t/i-want-to-load-an-external-swf-using-a-variable/221617/1 "2007-04-05T17:30:33Z")

</div>

I think i am screwing up the syntax. let’s say I have a global variable, like…  
\_global.something = mymovie

And then, the code to load in the external swf…  
loadMovie((something)+ “.swf”, \_root.ec);  
Well, it doesn’t work, and I’m just not sure where to put the quotes, and how many parenthesis are needed.  
How do I use a global variable and access it for this loadmovie code?  
Thanks.
