SWF滚动加载
Num = random(5)+1;
gotoAndStop(Num);
youbiao_mc._x = _root["btn"+(_currentframe-1)]._x-10;
for (n=1; n<6; n++) {
this["btn"+n].list = n;
this["btn"+n].onRelease = function() {
gotoAndStop(this.list);
time();
};
}
function time() {
clearInterval(id);
id = setInterval(time, 2000);
if (_currentframe<=5) {
gotoAndStop(_currentframe+1);
} else {
gotoAndStop(2);
}
youbiao_mc._x = _root["btn"+(_currentframe-1)]._x-10;
load_mc.loadMovie(_currentframe-1+".swf");
}
id = setInterval(time, 2000);
stop();