分类：电脑/网络-软件-多媒体软件
问题：FLASH高手来看看.偶是新手哇!我想自己做个进度条,在写完脚本 
我想自己做个进度条,在写完脚本准备测试的时候,提示错误说没有名为String的类,这是什么意思啊?脚本内容是1yxz=_ tBytesLded();2zxz=_ tBytesTotal();3bfb=int(yxz/zxz*100)+"%"4mc.gotoAndstop(int(yxz/zxz*100));其中yxz意思是已下载zxz是总下载mc是我命名过的影片剪辑.
回答：给你一个做加载的最简单的方法，你只需要在第一帧上复制下边的语句就搞定了．var myLding:MovieClip; var loadInfo:MovieClip;var _lineBgcolor = "0x666666"; var _lineColor = "0x0000FF"; var _lineLen:Number = 200; var _lineH:Number = 3; var _txtColor; var _txtAlign:String = "center"; var tb:Number; var txtFormat:TextFormat = new TextFormat("Arial", null, 0x000000, true); myLoading = _ eateEmptyMovieClip("myLoading",10); //进度条loadInfo =  eateEmptyMovieClip("line", 10);  neStyle(1, _lineColor, 20); veTo(0, 0); neTo(_lineLen, 0);  neTo(_lineLen, _lineH);  neTo(0, _lineH);  neTo(0, 0); //进度显示文本 eateTextField("txt", 30, 0, 0, _lineLen, 22); toSize = _txtAlign; //设置进度条的位置（居中于主场景）loadInfo._x = (Stage.width - _lineLen)/2; loadInfo._y = Stage.height/2; //获得影片大小并stop，再onEnterFrame tb = _ tBytesTotal(); _ op(); myLoading.onEnterFrame = function(){  var lb:Number = _ tBytesLoaded();  var percent:Number =  und(lb/tb*100);  loadInfo.txt.text = percent+"%";    tTextFormat(txtFormat);     neStyle(_lineH, _lineBgcolor, 10);    veTo(0, _lineH/2);    neTo(percent*_lineLen/100, _lineH/2);    if (percent == 100) {    _ ay();    delete this.onEnterFrame;     ear();     loadInfo.txt.text = "";  } } 不需用任何的mc很方便的．你试试