View Single Post
Old 30-05-2003, 07:20   #4 (permalink)
lucidcreations
Part of the 3 out of 4
 
lucidcreations's Avatar
 
Join Date: Feb 2003
Location: cheshire
Posts: 2,081
try this:-
-----------------------------------------------------------------

var randomNumber // will contain a random number

// pick a random number betweeen 0 & 5, then add 1 cos flash never
// gives highest number cos its zero based i.e. random(6) will randomly
// give 0,1,2,3,4,5 adding 1 will give 1,2,3,4,5,6
randomNumber = random(6) + 1;

// load the movie bannerX.swf into the target movie mytarget_mc or _root
// where X is replaced by randomNumber
_root.loadMovie("banner" + randomNumber + ".swf");

------------------------------------------------------------------

that should do the trick
__________________
Jase
  Reply With Quote