var curFlash=0; var flashLen=flashs.length; var $=function(obj){return document.getElementById(obj)} //判断是否需要播放下一个flash function updateMovie(){ var swf=$("swf"); var swf_container=$("swfcontain"); if(swf.PercentLoaded()==100){ var totalFrames; //IE与标准浏览器的差别 try{ //For Opera/FF totalFrames=swf.TotalFrames(); }catch(e){ //For IE totalFrames=swf.TotalFrames; } var curFrame=swf.CurrentFrame()+1;