# Dynamic Embed Loop

**URL:** <https://forum.kirupa.com/t/dynamic-embed-loop/330995>\
**Category:** flash\
**Created:** [April 23, 2013, 1:26pm UTC](https://forum.kirupa.com/t/dynamic-embed-loop/330995 "2013-04-23T13:26:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![selacius](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@selacius](https://forum.kirupa.com/u/selacius)\
**Post date:** [April 23, 2013, 1:26pm UTC](https://forum.kirupa.com/t/dynamic-embed-loop/330995/1 "2013-04-23T13:26:46Z")

</div>

I’m aware that embed works when compiling and not at runtime. Is there any way to have a loop within the class of a document that will embed dynamic content? I have embedded a master file list which will contain all of the map names and am looking for a way to embed the files which are present in this master list via a for loop within the class. I feel it is easier to do it this way as I won’t have to type in the names for every new map I add into the swf, but rather edit the master file and recompile the swf.

Any help would be appreciated.
