Random BG Image Tutorial

The tutorial was great!

I came up with one question though.

Why does this work… (using the location.loadMovie)

choice = Math.round(Math.random()*3);
switch (choice) {
case 0 :
location.loadMovie(“bgphoto0.swf”);
break;
case 1 :
location.loadMovie(“bgphoto1.swf”);
break;
case 2 :
location.loadMovie(“bgphoto2.swf”);
break;
}

but when I try using this (location.loadMovieNum) it doesnt’t load.

choice = Math.round(Math.random()*3);
switch (choice) {
case 0 :
location.loadMovieNum(“bgphoto0.swf”, 1);
break;
case 1 :
location.loadMovieNum(“bgphoto1.swf”, 1);
break;
case 2 :
location.loadMovieNum(“bgphoto2.swf”, 1);
break;
}

:)thx

nevermind, i figured it out.

I ditched the variable and positioned the photo on a same size movie screen as my main movie, and made it simply loadMovieNum instead of location.loadMovieblahblahblah

:smiley: