FLASH expert to look at. Even a novice wow!

Users questions: I would like to own to be a progress bar, finished scripts ready to test in time, suggesting an error that there is no class named String, what does this mean ah? Script content is 1yxz = _root.getBytesLoaded (); 2zxz = _root.getByte sTotal (); 3bfb = int (yxz * zxz * 100 )+"%" 4mc.gotoAndstop (int (yxz * zxz * 100)); which means that the downloaded zxz yxz the total download mc is my name the movie clip .
Experts answer: give you a load to do the most simple way, you only need to copy the first frame or you have a statement below. varmyLoading: MovieClip; varloadInfo: MovieClip; var_lineBgcolo r = "0x666666"; var_lineColor = "0x0000FF"; var_lineLen: Number = 200; var_lineH: Number = 3; var_txtColor; var_txt Align:String= center ;vartb:Number;vartxtFormat:TextFormat=newTextFormat( Arial ,null,0x000000,true) line ,10);loadInfo.lineStyle(1,_lineColor,20);loadInfo.moveTo(0,0);loadInfo.lineTo(_lineLen,0);loadI nfo.lineTo(_lineLen,_lineH);loadInfo.lineTo(0,_lineH);loadInfo.lineTo(0,0);** loadInfo.createTe xtField ("txt", 30,0,0, _lineLen, 22); loadInfo.txt.autoSize = _txtAlign; ** set the progress bar's location (centered in the main scene) loadInfo._x = (Sta ge.width-_lineLen) * 2; loadInfo._y = Stage.height * 2; ** get video size and stop, then onEnterFrametb = _root.getBytesTotal (); _root.stop();myLoading.onEnterFrame=function(){varlb:Number=_root.getBytesLoaded();varpercent:Number lineStyle(_lineH,_lineBgcolor,10);loadInfo.moveTo(0,_lineH*2);loadInfo.lineTo(percent*_lineLen*100,_ ;)) Without using any of the mc very convenient. Try
  • This information provided by the users.Thanks!