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

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

hi,

Hope this helps you.

load the text file and u are already done with that. So your problem is in loading the movie.

Please note that path is very important while loading the movies.

so diclare one variable and assign path to it.

for example:

myPath=“myFolder/”;

In the above example myFolder is the folder which contains all your swf files. Then try with the following code.

myMC.loadMovie(myPath+sm);

hope this works, let me know if this dosn’t work

Prathap