Combined Code
movieClip 1 {
}
frame 1 {
this.setMask(movieShapeMaskMC);
}
movieClip 8 {
}
movieClip 4 {
frame 1 {
ParamsValue = '<ParamsValue><Bg.Color>0xFF0000</Bg.Color><Bg.BgColor>0x000000</Bg.BgColor></ParamsValue>';
}
frame 1 {
ParamsDefine = '<ParamsDefine><Bg.Color caption="Color" type="color" default="0xFFFFFF"/><Bg.BgColor caption="Background color" type="color" default="0x000000"/></ParamsDefine>';
param = new Array();
if (ParamsValue != null) {
paramXML = new XML(ParamsValue);
paramXML.ignoreWhite = true;
var i = 0;
while (i < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i];
param[node.nodeName] = node.childNodes[0].nodeValue;
++i;
}
param.Bg.Color = parseInt(param.Bg.Color);
} else {
param.Bg.Color = 16777215;
param.Bg.BgColor = 0;
}
_parent.stop();
var myColor = new Color(loadingCircle);
myColor.setRGB(param.Bg.Color);
bytesDisplay.textColor = param.Bg.Color;
}
frame 2 {
var siteLoaded = _parent.getBytesLoaded();
var siteTotal = _parent.getBytesTotal();
var percentage = Math.round((siteLoaded / siteTotal) * 100);
bytesDisplay.text = percentage;
if (siteLoaded >= siteTotal) {
gotoAndPlay(_currentframe + 2);
}
}
frame 3 {
gotoAndPlay(_currentframe - 1);
}
frame 4 {
stop();
_parent.play();
}
}
frame 3 {
g_soundloopcount = -1;
moviesound = new Sound();
moviesound.attachSound('moviesound');
moviesound.start();
moviesound.onSoundComplete = function () {
if (g_soundloopcount != -1) {
--g_soundloopcount;
}
if (g_soundloopcount != 0) {
moviesound.start();
}
};
play();
}
movieClip 19 {
}
movieClip 20 {
frame 10 {
stop();
}
}
button 21 {
on () {
}
}
movieClip 12 {