Combined Code
frame 1 {
objTime = new Date();
varStartSeconds = objTime.getSeconds();
varStartMinutes = objTime.getMinutes();
varStartHours = objTime.getHours();
varStartDays = objTime.getDay();
}
frame 2 {
objNewTime = new Date();
varBytes = _root.getBytesLoaded();
varKbytes = Math.round((_root.getBytesLoaded() / 1024) * 100) / 100;
varTotalBytes = Math.round((_root.getBytesTotal() / 1024) * 100) / 100;
if (varBytes > 1024) {
txtBytes = varKbytes add ' Kbytes of ' add varTotalBytes add ' Kbytes';
} else {
txtBytes = varBytes add ' Bytes of ' add varTotalBytes add ' Kbytes';
}
txtPercentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) add '%';
varElapsedSeconds = objNewTime.getSeconds() - varStartSeconds;
varElapsedMinutes = objNewTime.getMinutes() - varStartMinutes;
varElapsedHours = objNewTime.getHours() - varStartHours;
varElapsedDays = objNewTime.getDay() - varStartDays;
varElapsedTime = varElapsedDays * 24 * 60 * 60 + varElapsedHours * 60 * 60 + varElapsedMinutes * 60 + varElapsedSeconds;
if (varElapsedTime > 1) {
txtElapsed = varElapsedTime add ' Seconds';
} else {
txtElapsed = varElapsedTime add ' Second';
}
varSpeed = Math.round((_root.getBytesLoaded() / varElapsedTime / 1024) * 10) / 10;
txtSpeed = varSpeed add ' Kbytes/Second';
varRemaining = Math.round((_root.getBytesTotal() - _root.getBytesLoaded()) / varSpeed * 1024);
if (varRemaining > 1) {
txtRemaining = varRemaining add ' Seconds';
} else {
txtRemaining = varRemaining add ' Second';
}
varMove = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 458.8);
_root.mcLoad._x = -59.4 + varMove;
}
frame 3 {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay(4);
} else {
gotoAndPlay(2);
}
}
movieClip 168 {
}
movieClip 176 {
}
movieClip 177 {
frame 1 {
min_wait = '40';
max_wait = '180';
wait_count = Number(random(max_wait - min_wait)) + Number(min_wait);
max_view = '20';
max_drift = '.4';
tellTarget ('lines') {
gotoAndPlay(Number(random(6)) + 1);
}
}
frame 2 {
wait_count -= 1;
if (!wait_count) {
wait_count = Number(random(max_wait - min_wait)) + Number(min_wait);
view = Number(random(max_view)) + 4;
drift = random(Number(20 * max_drift) + 1) / 10 - max_drift;
_x = Number(random(../:stage_width)) + 1;
_alpha = Number(random(61)) + 40;
gotoAndPlay('slave');
}
}
frame 3 {
gotoAndPlay('master');
}
frame 4 {
view -= 1;
if (!view) {
_x = '-10';
gotoAndPlay('master');
}
_x = Number(_x) + Number(drift);
}
frame 5 {
gotoAndPlay('slave');
}
}
movieClip 198 {
frame 1 {
stop();
}
}
movieClip 199 {
frame 1 {
if (_name eq 'speck_master') {
min_wait = '10';
max_wait = '60';
max_view = '4';
wait_count = Number(random(max_wait - min_wait)) + Number(min_wait);
gotoAndPlay('master');
}
view_count = '0';
}
frame 2 {
view -= 1;
if (!view) {
removeMovieClip('');
}
}
frame 3 {
gotoAndPlay('slave');
}
frame 4 {
wait_count -= 1;
if (!wait_count) {
wait_count = Number(random(max_wait - min_wait)) + Number(min_wait);
../:clip_count = Number(../:clip_count) + 1;
new_name = 'speck' add ../:clip_count;
duplicateMovieClip('', new_name, ../:clip_count);
eval('../' add new_name)._x = Number(random(../:stage_width)) + 1;
eval('../' add new_name)._y = Number(random(../:stage_height)) + 1;
eval('../' add new_name)._alpha = Number(random(41)) + 60;
eval('../' add new_name add ':view') = Number(random(max_view)) + 1;
tellTarget (''../' add new_name add '/specks'') {
gotoAndStop(Number(random(20)) + 1);
}
}
}
frame 5 {
gotoAndPlay('master');
}
}
movieClip 200 {
frame 1 {
stage_width = '350';
stage_height = '250';
stop();
}
}
movieClip 212 {
}
movieClip 216 {
}
movieClip 217 {
frame 1 {
sizeX = 900;
sizeY = 700;
angleX = 0;
angleY = 0;
dx = 1;
dy = 1;
speedX = 0.02;
speedY = 0.01;
deltaSpeedX = 0;
deltaSpeedY = 0;
smoke_bkg._x = 0;
smoke_bkg._y = 0;
}
frame 2 {
if (random(8) == 4) {
deltaSpeedX = (random(11) - 5) / 10000;
deltaSpeedX = 0.0009;
}
if (deltaSpeedX != 0) {
if (speedX < -0.09) {
speedX += Math.abs(deltaSpeedX);
} else {
if (speedX > 0.09) {
speedX -= Math.abs(deltaSpeedX);
} else {
if (speedX > -0.05 and speedX < 0.05) {
speedX += deltaSpeedX;
}
}
}
}
angleX += speedX;
if (angleX >= Math.PI) {
angleX = 0;
dx = -dx;
}
x = Math.abs(Math.sin(angleX)) * (sizeX / 2);
if (dx == 1) {
smoke_bkg._x = x;
} else {
smoke_bkg._x = -x;
}
if (random(8) == 4) {
deltaSpeedY = (random(11) - 5) / 10000;
deltaSpeedY = 0.0009;
}
if (deltaSpeedY != 0) {
if (speedY < -0.09) {
speedY += Math.abs(deltaSpeedY);
} else {
if (speedY > 0.09) {
speedY -= Math.abs(deltaSpeedY);
} else {
if (speedY > -0.09 and speedY < 0.05) {
speedY += deltaSpeedY;
}
}
}
}
angleY += speedY;
if (angleY >= Math.PI) {
angleY = 0;
dy = -dy;
}
y = Math.abs(Math.sin(angleY)) * (sizeY / 2);
if (dy == 1) {
smoke_bkg._y = y;
} else {
smoke_bkg._y = -y;
}
}
frame 3 {
gotoAndPlay(2);
}
}
movieClip 218 {
}
movieClip 297 {
}