Random NT Voice - how?
- Started
- Last post
- 5 Responses
- stimuli
Trying to set up an NT style welcome sound in a Flash file. Any idea how I can make a movie that plays one of four random sounds (once) when the movie loads? Remember I'm not a Flash guru, just a print designer who does some web! Any help greatly appreciated.
- unformatted0
you could do it 2 ways.
make 4 swfs use javascript to randomly display 1 swf.
or in flash randomly load 1 of 4 swfs.
- unfittoprint0
name (in the library's external link option) the soundmovies like
sound1, sound2, sound3, sound4in the actionscript panel:
randomMovie=Math.ceil(Math.rand...
mysound = new sound()
mysound.attachsound("sound"+rand...
mysound.play
- stimuli0
Thanks guys, appreciate it. I'll try them both.
- stimuli0
Thanks again guys, got it to work. Just made on main movie that calls up one of 4 others when it loads. Here's the actionscript for the main movie:
sounds = 4;
directory = "http://www.myurl.com/sounds/";
loadMovie(directory add Math.ceil(Math.random()*sounds) add ".swf",_level0);
- unfittoprint0
cooool.