Random Banner for each visit
Flash has never been so interactive. In this tutorial i will be showing you how to load up a random swf each visit. So lets start!
1- rename all your desired movies into banner(number).swf eg banner1.swf,banner1.swf they have to consiguative numbers starting at 1
2- Load up flash
3- go to windows>actions
Enter the following:
-
itemtotal = 2; //total banners that are going to be viewed randomly
-
fscommand("flashpath");
-
temptotal = itemtotal;
-
movieprefix = "banner";//as for the file name set previosly
-
aItemTemp = new Array(); //set a new arrey
-
aMovie = new Array(); //set another new arrey
-
newvar = math.round((math.random()*1)+1); // the alotherigom to work out the number which is going to be viewed.
-
loadMovieNum(movieprefix+(newvar)+".swf", 1); //loads the movie
test the movie by clicking control+ enter again and again(that will refresh it)
Tell me,how easy was that!
If you encounter any problems please do not hesitat to contact me.
Popularity: 29% [?]


Nice Tut !
the whole thing did not work..
all the lines had errors mainly saying :1120:Access to undefined property
can I see your code?