I used a script like this to randomise a background graphic:
function randomBg() {
randFrame = random(3)+1;
bg_graphics.gotoAndStop(randFrame);
}
- What kind of script would u use to target sound objects in the library to play at random when the movie loads. Playing only one of the audio loops everytime the movie loads???
- I have already got this script on the onClipEvent load. Could this be used further, to refer to what i want to do above?
mysoundobject = new Sound();
mysoundobject.start(0, 1);