FGS Randomiser

  • Posted:
  • Proposals: 1
  • Remote
  • #3271
  • Archived
Paul A. has already sent a proposal.
  • 0


Experience Level: Intermediate
Am using the script in a flash movie to load in a randomly selected .swf.
This works fine except that it completely reloads the movie with the new one, and i need to retain
some elements from the original, therefore need to load the new movie into the old one...

Can someone show me what I need to do?

// all variables are global so they will be available
// as we load new swfs into level 0...
_global.fileNames = ["home_bot_alex.swf","home_bot_jackson.swf","home_bot_rob_gym.swf","home_bot_rob_webber.swf","home_bot_ross.swf","home_bot_simon.swf"];
//get random file while checking against the last one
do { var newFile = fileNames[Math.round(Math.random()*(fileNames.length-1))]; }
while (oldFile==newFile);
return newFile;
_global.fileToLoad = getRandomFile(_global.fileToLoad);

New Proposal

Create an account now and send a proposal now to get this project.

Sign up

Clarification Board Ask a Question

    There are no clarification messages.