Random movie Problem in your code

Hi

I have used your random movie loader as per instructions ([color=#003366]Loading Random Movies [/color][font=Verdana][color=#003366][color=#394153]by kirupa - 25 January 2004[/color])[/color][/font]
[color=#003366][/color]
Everything works when you publish it in normal view from Flash (Cntrl Enter) but does not work HTML. But then again yours work on the page…? Any ideas…?

my code:
filename = [“welcome1.swf”, “welcome2.swf”, “welcome3.swf”, “welcome4.swf”];
path = “/”; (it is in the same path as the original movie)
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], movieTarget);