
var movieName = "testcommand";

function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  } else {
    return document[movieName]
  }
}


// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  // First make sure the movie's defined.
  if (typeof(theMovie) != "undefined") {
    // If it is, check how much of it is loaded.
    return theMovie.PercentLoaded() == 100;
  } else {
    // If the movie isn't defined, it's not loaded.
    return false;
  }
}

function playmovie() {
  if (movieIsLoaded(thisMovie("testcommand"))) {
    //thisMovie("testcommand").GotoFrame(33);
    thisMovie("testcommand").StopPlay();
    //thisMovie("testcommand").Play(); 
	//StopPlay(): Stop the movie. 
	//IsPlaying(): Check if the movie's playing. 
	//GotoFrame (x): Go to frame "x". "x" must be an integer. 
	//TotalFrames(): Check how many frames are in the movie. 
	//Rewind(): Go to frame 1 and stop. 
  }
}

