Loading swf with variable name

Hello!
This is what I have: I have a variable called “Tag01”
This is what I would like to do, but again, I don’t know how:
I want to load an swf called “Tag01.swf” but because tag01 is a variable, a different movie should be loaded for every different value of “tag01”
I’ll give an example:

If the value of “tag01” is set to “homepage”, “homepage.swf” should be loaded when loadmovie(tag01.swf) is executed.
But if the value of “tag01” is changed and is set to “guitarpage”, the next time loadmovie(tag01.swf) is executed, “guitarpage.swf” should be loaded in my movieclip.

I hope you understand?
How can I do this?

Thanks!!

it should be

tag01 = "homepage";
loadMovie(tag01+".swf");

:slight_smile:

thanks ahmed!
I think my problem must be elsewhere, because I already tried the tip you just gave me, and it didn’t work. But others gave me the same tip, so I’ll have to check the script line by line to find the bug.

bye!