Frame 2
if (_framesloaded < _totalframes) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndStop(_currentframe + 1);
}
Frame 3
stop();
targetClip = this.main;
loadMovie ("teaser.swf", targetClip);
bar._xscale = 0;
this.onEnterFrame = function () {
var _local2 = int(100 * (targetClip.getBytesLoaded() / targetClip.getBytesTotal()));
targetClip._visible = 0;
targetClip.gotoAndStop(1);
if (_local2 < 100) {
outpercent = "0" + _local2;
} else {
outpercent = _local2;
}
if (_local2 < 10) {
outpercent = "00" + _local2;
}
percent.text = outpercent + "%";
bar._xscale = _local2;
if (targetClip.getBytesLoaded() < 1024) {
percent.text = "000%";
bar._xscale = 0;
}
if ((_local2 >= 100) && (targetClip.getBytesLoaded() > 1024)) {
targetClip.videoPath = this.videoPath;
targetClip._visible = 1;
targetClip.gotoAndStop(2);
gotoAndStop(_currentframe + 1);
delete this.onEnterFrame;
}
};