Combined Code
movieClip 3 {
}
button 9 {
on (release) {
_root.play();
}
}
movieClip 10 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
eval(bar)._xscale = PercentLoaded;
} else {
gotoAndStop(3);
}
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 12 {
frame 1 {
framerate = 30;
runtime = 0.5;
minrate = 24;
if (!init) {
init = 1;
ddate = new Date();
timex = ddate.getTime();
quality = 2;
cycle = 0;
checkit = runtime * framerate;
gauge = minrate;
gauge2 = framerate - (framerate - minrate) / 2;
}
if (_root.quality == 'auto') {
++cycle;
if (cycle > checkit) {
ddate = new Date();
timey = ddate.getTime();
span = timey - timex;
test = timey + '\n' + '-' + timex + '\n' + '------------' + '\n' + span;
fps = framerate / (span / 1000 * runtime);
timex = timey;
cycle = 0;
if (fps < gauge and quality > 0) {
--quality;
} else {
if (fps > gauge2 and quality < 1) {
++quality;
}
}
if (quality == 0) {
_root._quality = 'LOW';
} else {
if (quality == 1) {
_root._quality = 'HIGH';
}
}
}
} else {
if (_root.quality == 'medium') {
_root._quality = 'MEDIUM';
quality = 0;
} else {
if (_root.quality == 'low') {
_root._quality = 'LOW';
quality = 0;
} else {
_root._quality = 'HIGH';
quality = 1;
}
}
}
}
frame 2 {
gotoAndPlay(1);
}
}
frame 216 {
stop();
}
button 114 {
on (release) {
gotoAndPlay(217);
}
}
button 116 {
on (release) {
_root.quality = 'high';
}
}
button 119 {
on (release) {
_root.quality = 'medium';
}
}
button 121 {
on (release) {
_root.quality = 'low';
}
}
button 123 {
on (release) {
_root.quality = 'auto';
}
}
movieClip 127 {
frame 1 {
if (_root.quality.length < 1) {
_root.quality = 'auto';
}
quality = _root.quality;
}
frame 2 {
gotoAndPlay(1);
}
}
frame 6779 {
stop();
}
button 2572 {
on (release) {
gotoAndPlay(1);
}
}