darklogik_org
April 18th, 2003, 03:56 AM
Hi, I've been designing this interface for my site. It contains a mini-tv thing in the corner that plays external flash movies selected at random from a list and loaded into an empty MC ("external_screen") with "loadMovie".
the code is as follows
onClipEvent (load) {
movieList = ["technical_fault", "skag"];
_root.external_screen.loadMovie(movieList[Math.floor(Math.random()*movieList.length)]+".swf");
}
where "technical_fault" and "skag" are external swf files
How do I make it so that when a movie finishes, the previous code is run again and a new movie is selected?
cheers
the code is as follows
onClipEvent (load) {
movieList = ["technical_fault", "skag"];
_root.external_screen.loadMovie(movieList[Math.floor(Math.random()*movieList.length)]+".swf");
}
where "technical_fault" and "skag" are external swf files
How do I make it so that when a movie finishes, the previous code is run again and a new movie is selected?
cheers