Combined Code
button 7 {
on (press) {
play();
}
}
button 12 {
on (press) {
stop();
}
}
button 17 {
on (press) {
stop();
gotoAndStop(3);
}
}
movieClip 21 {
}
movieClip 24 {
}
frame 1 {
tframes = _totalframes;
}
frame 1 {
floaded = _framesloaded;
}
frame 1 {
FullWidth = 449;
percent = floaded / tframes;
adjustedPercent = percent / 0.7;
currentWidth = adjustedPercent * FullWidth;
if (FullWidth < currentWidth) {
currentWidth = FullWidth;
}
}
frame 1 {
alphaVal = 150 - counter;
if (dir == 0) {
counter += 2;
}
if (dir == 1) {
counter -= 2;
}
if (148 < counter) {
dir = 1;
}
if (counter < 2) {
dir = 0;
}
}
frame 1 {
Progress._width = currentWidth;
}
frame 1 {
Loading._alpha = alphaVal;
}
frame 1 {
Progress._y = '0';
}
frame 2 {
condLoad = 0;
if (percent >= 0.7) {
condLoad = 1;
}
}
frame 2 {
if (!condLoad) {
gotoAndPlay(1);
}
}
frame 4419 {
gotoAndPlay(3);
}