判斷Flash是否全部加載完畢的程序

/ Checks if movie is completely loaded.
// 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;
   }
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章