Frame 1
this.setMask(movieShapeMaskMC);
Frame 2
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();
Frame 3
play();
Frame 4
stop();
Frame 5
gotoAndPlay ("loopstart");
Symbol 11 MovieClip Frame 1
if (this._x > this.MaxWidth) {
this._x = (-this._width) + 2;
this._y = random(4 * this._height);
var scale = (random(60) + 80);
this._xscale = scale;
this._yscale = scale;
this._alpha = random(40) + 80;
}
if (this._x < (-this._width)) {
this._x = this.MaxWidth - 2;
this._y = random(4 * this._height);
var scale = (random(60) + 80);
this._xscale = scale;
this._yscale = scale;
this._alpha = random(40) + 80;
}
this._x = this._x + this.XVelocity;
Symbol 11 MovieClip Frame 2
gotoAndPlay (1);
Symbol 13 MovieClip Frame 1
if (this._x > this.MaxWidth) {
this._x = (-this._width) + 2;
this._y = random(4 * this._height);
var scale = (random(60) + 80);
this._xscale = scale;
this._yscale = scale;
this._alpha = random(40) + 80;
}
if (this._x < (-this._width)) {
this._x = this.MaxWidth - 2;
this._y = random(4 * this._height);
var scale = (random(60) + 80);
this._xscale = scale;
this._yscale = scale;
this._alpha = random(40) + 80;
}
this._x = this._x + this.XVelocity;
Symbol 13 MovieClip Frame 2
gotoAndPlay (1);
Symbol 15 MovieClip Frame 1
if (this._x > this.MaxWidth) {
this._x = (-this._width) + 2;
this._y = random(4 * this._height);
var scale = (random(60) + 80);
this._xscale = scale;
this._yscale = scale;
this._alpha = random(40) + 80;
}
if (this._x < (-this._width)) {
this._x = this.MaxWidth - 2;
this._y = random(4 * this._height);
var scale = (random(60) + 80);
this._xscale = scale;
this._yscale = scale;
this._alpha = random(40) + 80;
}
this._x = this._x + this.XVelocity;
Symbol 15 MovieClip Frame 2
gotoAndPlay (1);
Symbol 9 MovieClip Frame 1
ParamsValue = "<ParamsValue><Movie.Width>720</Movie.Width><Movie.Height>480</Movie.Height><Movie.FPS>20</Movie.FPS><Bg.Number>6</Bg.Number><Bg.Speed>4</Bg.Speed><Bg.Direction>random</Bg.Direction></ParamsValue>";
ParamsDefine = "<ParamsDefine><Bg.Number caption=\"Cloud number\" type=\"integer\" min=\"1\" max=\"500\" default=\"6\"/><Bg.Speed caption=\"Moving speed\" type=\"integer\" min=\"1\" max=\"100\" default=\"4\"/><Bg.Direction caption=\"Moving direction\" type=\"selection\" selection=\"right;left;random\" default=\"random\"/></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.Number"] = parseInt(param["Bg.Number"]);
param["Bg.Speed"] = parseInt(param["Bg.Speed"]);
param["Movie.Width"] = _parent._width;
param["Movie.Height"] = _parent._height;
} else {
param["Bg.Number"] = 6;
param["Bg.Speed"] = 4;
param["Bg.Direction"] = "right";
param["Movie.Width"] = 400;
param["Movie.Height"] = 300;
}
i = 0;
while (i < 3) {
this["symbol" + i]._visible = false;
i++;
}
i = 0;
while (i < param["Bg.Number"]) {
j = random(3);
duplicateMovieClip ("symbol" + j, "bot" + i, i);
this["bot" + i]._x = random(param["Movie.Width"] + (2 * this["bot" + i]._width));
this["bot" + i]._y = random(4 * this["bot" + i]._height);
var scale = (random(60) + 80);
this["bot" + i]._xscale = scale;
this["bot" + i]._yscale = scale;
this["bot" + i]._alpha = random(40) + 80;
var iDirection = 1;
if (param["Bg.Direction"].toLowerCase() == "left") {
iDirection = -1;
} else if (param["Bg.Direction"].toLowerCase() == "random") {
iDirection = random(2);
if (iDirection == 0) {
iDirection = -1;
}
}
this["bot" + i].XVelocity = (iDirection * ((Math.random() * param["Bg.Speed"]) + param["Bg.Speed"])) * 0.1;
this["bot" + i].MaxWidth = param["Movie.Width"] + this["bot" + i]._width;
this["bot" + i].MaxHeight = param["Movie.Height"] + this["bot" + i]._height;
i++;
}