Combined Code
frame 1 {
stop();
}
movieClip 3 {
frame 1 {
if (!hasOwnProperty('_load')) {
_load = true;
tellTarget ('..') {
parameters = {'BgndColor': -3355444, 'BgndColorH': -1, 'BarColorL': -16724737, 'BarColorH': -16711681, 'TextColor': -10066330, 'BlinkDelay': -1, 'Text': 'Loading:', 'DisplayMode': 'Percent', 'WhenLoadedGoto': 'Play Next Scene', 'HideWhenLoaded': true, 'EventFunction': 'Events'};
properties = parameters;
} else {
goto 645;
}
function Progress() {
}
tellTarget ('..._target') {
gotoAndPlay('/:2');
}
goto 650;
label 645:
goto 704;
label 650:
function loadParameters(txt) {
}
tellTarget ('..._target') {
return eval('parameters.' add txt);
}
goto 709;
label 704:
goto 896;
label 709:
function displaytext(mode, bytesloaded, bytestotal, pc) {
}
tellTarget ('..._target') {
if (mode != 'Percent') {
} else {
if (mode != 'Bytes') {
percent.text = int(pc + 0.5) add '%';
} else {
percent.text = bytesloaded add '/' add bytestotal;
}
}
}
goto 901;
label 896:
goto 1172;
label 901:
G_displaymode = loadParameters('DisplayMode');
G_goto = loadParameters('WhenLoadedGoto');
G_blinkdelay = loadParameters('BlinkDelay');
G_countdown = G_blinkdelay;
G_hide = loadParameters('HideWhenLoaded');
G_eventfunction = loadParameters('EventFunction');
G_framecount = 0;
G_v = 0;
if ('Bar Only' != G_displaymode) {
loading.text = loadParameters('Text');
}
progressbar.SetValue(0);
displaytext(G_displaymode, _parent.getBytesTotal(), _parent.getBytesTotal(), 100);
if ('Play Parent' == parameters.WhenLoadedGoto) {
_parent.stop();
}
goto 1177;
label 1172:
goto 1181;
label 1177:
}
label 1181:
stop();
}
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 8 {
frame 1 {
if (!hasOwnProperty('_load')) {
_load = true;
tellTarget ('..') {
parameters = {'BgndColor': -3355444, 'BgndColorH': -1, 'BarColorL': -16724737, 'BarColorH': -16711681, 'LimitMaximum': 100, 'LimitMinimum': 0, 'EventVar': '_root.value', 'Mode': 'Manual'};
properties = parameters;
} else {
goto 585;
}
function SetValue(v) {
}
tellTarget ('..._target') {
v -= G_limitmin;
v *= 100 / G_scale;
if (v < 0) {
v = 0;
}
if (v > 100) {
v = 100;
}
bar._xscale = v;
}
goto 590;
label 585:
goto 724;
label 590:
function Setparameters(mode, eventvar, limitmin, limitmax) {
}
tellTarget ('..._target') {
G_mode = mode;
G_eventvar = eventvar;
G_limitmin = limitmin;
G_limitmax = limitmax;
G_scale = limitmax - limitmin;
G_poll = 'Poll' == G_mode;
}
goto 729;
label 724:
goto 782;
label 729:
function loadParameter(txt) {
}
tellTarget ('..._target') {
return eval('parameters.' add txt);
}
goto 787;
label 782:
goto 885;
label 787:
Setparameters(loadParameter('Mode'), loadParameter('EventVar'), loadParameter('LimitMinimum'), loadParameter('LimitMaximum'));
G_lastval = -1;
SetValue(G_limitmin);
goto 890;
label 885:
goto 894;
label 890:
}
label 894:
nextFrame();
play();
}
frame 3 {
tellTarget ('..') {
if (!G_poll) {
return undefined;
}
if ('' == G_eventvar) {
return undefined;
}
var v = eval(G_eventvar);
if (v != G_lastval) {
G_lastval = v;
SetValue(v);
}
}
gotoAndPlay(2);
}
}
movieClip 10 {
}
movieClip 12 {
}
movieClip 14 {
}
movieClip 15 {
}
movieClip 16 {
frame 2 {
stop();
delete _global.__resolve;
_global.__resolve = _global.__debugResolve;
if (bytesloaded == undefined) {
var bytesloaded = NaN;
}
delete _global.__resolve;
_global.__resolve = _global.__debugResolve;
if (bytestotal == undefined) {
var bytestotal = NaN;
}
if ('Demo Mode' != G_goto) {
bytesloaded = _parent.getBytesLoaded();
bytestotal = _parent.getBytesTotal();
} else {
bytesloaded = G_framecount++;
bytestotal = 500;
}
if (bytesloaded >= bytestotal) {
if ('Bar Only' != G_displaymode) {
loading._visible = true;
}
if (G_hide) {
this._visible = false;
}
Progress();
if (!('Use EventFunction' != G_goto || '' == G_eventfunction)) {
_parent[G_eventfunction].call(_parent, _name, 'Loaded');
}
this.stop();
return undefined;
}
if (G_countdown == 0) {
G_countdown = G_blinkdelay;
if ('Bar Only' != G_displaymode) {
loading._visible = !loading._visible;
}
} else {
if (G_countdown > 0) {
--G_countdown;
}
}
G_v = (bytesloaded / bytestotal) * 100;
progressbar.SetValue(G_v);
displaytext(G_displaymode, bytesloaded, bytestotal, G_v);
this.gotoAndPlay('Loading');
}
}
movieClip 27 {
}
button 34 {
on (press) {
getURL('http://www.spasskanal.de', '');
}
}
frame 221 {
stop();
stop();
}