# Load a .swf within .swf file as per text file value

**URL:** <https://forum.kirupa.com/t/load-a-swf-within-swf-file-as-per-text-file-value/100958>\
**Category:** Uncategorized\
**Created:** [February 4, 2004, 8:23am UTC](https://forum.kirupa.com/t/load-a-swf-within-swf-file-as-per-text-file-value/100958 "2004-02-04T08:23:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjay2211](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@sanjay2211](https://forum.kirupa.com/u/sanjay2211)\
**Post date:** [February 4, 2004, 8:23am UTC](https://forum.kirupa.com/t/load-a-swf-within-swf-file-as-per-text-file-value/100958/1 "2004-02-04T08:23:49Z")

</div>

I just want to load a .swf file withing my current .swf file as per the value the external text file.

I have done few experiments too.

1. I have writter below code on the first frame of my movie. here “myMC” is my target movie clip inside which i want to load another swf file.

loadVariables(“myData.txt”, “\_root.myMC”);

1. the code of my external text file is as below  
sm=one.swf;

Now my doubt is where and how i should write the loadmovie command to load my swf file.

can anyone please give me the logic or can send me sample files.  
my email id is : [sanjay2211@rediffmail.com](mailto:sanjay2211@rediffmail.com)
