# Load Dynamic external swf question to flash file

**URL:** <https://forum.kirupa.com/t/load-dynamic-external-swf-question-to-flash-file/74983>\
**Category:** Uncategorized\
**Created:** [January 4, 2005, 7:11pm UTC](https://forum.kirupa.com/t/load-dynamic-external-swf-question-to-flash-file/74983 "2005-01-04T19:11:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hy503](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@hy503](https://forum.kirupa.com/u/hy503)\
**Post date:** [January 4, 2005, 7:11pm UTC](https://forum.kirupa.com/t/load-dynamic-external-swf-question-to-flash-file/74983/1 "2005-01-04T19:11:50Z")

</div>

[color=black]Hi,[/color]

I have a webpage with a flash button (player.swf),each time clicked, will load and play a different word sound swf file(i.e. unknown.swf), which will be specified at run time.  
[color=black][/color]  
[color=black]I read through the tutorial at[/color]  
[[color=black]http://www.kirupa.com/developer/flash5/loadmovie.htm[/color]](http://www.kirupa.com/developer/flash5/loadmovie.htm)  
[http://www.kirupa.com/developer/mx/loading.htm](http://www.kirupa.com/developer/mx/loading.htm)  
[color=black][/color]  
[color=black]but the swf ([/color][[color=black]http://www.kirupa.com/developer/flash5/animation/loadm.swf[/color]](http://www.kirupa.com/developer/flash5/animation/loadm.swf), loaded.swf…[color=black]) in the tutorial [/color][color=black]are static, not dynamic. [/color]  
[color=black][/color]  
[color=black]Question:[/color]  
[color=black][/color]  
[color=black]If I want to dynamically load an different external swf to the main swf movie, how can I change the code? I guess I should some how create a variable like “loadme” in player.swf, and in the html code of the webpage, I’ll pass the name of the external swf to “loadme”, like player.swf?loadme=unknown.swf.[/color]

anyone has a clue?

Thanks,

tom
