JAVASCRIPT
56
Getmovie
Guest on 24th May 2022 12:55:10 AM
function getMovie(id){
if(document.layers){
lastMovie=eval('document.layers.'+id+'.document.embeds[0]');
}else{
lastMovie=eval('document.all.'+id+'f');
}
return lastMovie;
}
// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
if (typeof(theMovie) != "undefined") {
return theMovie.PercentLoaded() == 100;
} else {
return false;
}
}
function playmovie() {
if (movieIsLoaded(thisMovie(movieName))) {
thisMovie(movieName).Play();
}
}
function go(id,theFrame) {
if (movieIsLoaded(thisMovie(id))) {
thisMovie(id).GotoFrame(theFrame);
}
}