Instance of Symbol 10 MovieClip "movieMain" in Frame 1
onClipEvent (load) {
_root.FenyCount = 9;
_root.tickCount = 0;
_root.fps = 24;
_root.lengthInSecs = 20;
_root.isChangeAlpha = true;
_root.isFirstChangeAlpha = true;
if (_global.isLoaded == undefined) {
_global.isLoaded = true;
_root._quality = "MEDIUM";
}
var i;
i = 0;
while (i < (_root.FenyCount - 1)) {
this.attachMovie("FenyFeher", "FenyFeher" + i, i);
this["FenyFeher" + i]._x = (-40 + (i * 20)) + random(5);
this["FenyFeher" + i]._y = (3 - (i * 1)) + random(5);
this["FenyFeher" + i]._xscale = 60 + random(60);
this["FenyFeher" + i]._yscale = this["FenyFeher" + i]._xscale;
this["FenyFeher" + i]._alpha = 0;
i++;
}
}
onClipEvent (enterFrame) {
_root.tickCount++;
this._xscale = this._xscale + 0.1;
this._yscale = this._xscale;
var fenyFrame;
fenyFrame = _root.tickCount % (_root.fps * 2);
var tempAlpha;
var oszto;
var i;
var j;
if (_root.tickCount < (_root.lengthInSecs * _root.fps)) {
if (fenyFrame == 0) {
_root.isChangeAlpha = !_root.isChangeAlpha;
}
_root.isChangeAlpha = fenyFrame < (_root.FenyCount - 1);
if (_root.isChangeAlpha) {
if (_root.isFirstChangeAlpha) {
i = 0;
while (i < (_root.FenyCount - 1)) {
oszto = 1 + ((_root.tickCount / (_root.lengthInSecs * _root.fps)) * 10);
this["FenyFeher" + i]._x = this["FenyFeher" + i]._x + ((random(3) - 1) / oszto);
this["FenyFeher" + i]._y = this["FenyFeher" + i]._y + ((random(3) - 1) / oszto);
this["FenyFeher" + i]._xscale = this["FenyFeher" + i]._xscale + ((random(3) - 1) / 1);
this["FenyFeher" + i]._yscale = this["FenyFeher" + i]._xscale;
this["FenyFeher" + i]._alpha = (Math.abs(i - _root.FenyCount) * (100 / (_root.FenyCount - 1))) * (_root.tickCount / (_root.lengthInSecs * _root.fps));
i++;
}
_root.isFirstChangeAlpha = false;
}
j = 1;
while (j < (_root.FenyCount - 1)) {
tempAlpha = this["FenyFeher" + j]._alpha;
this["FenyFeher" + j]._alpha = this["FenyFeher" + (j - 1)]._alpha;
this["FenyFeher" + (j - 1)]._alpha = tempAlpha;
j++;
}
} else {
_root.isFirstChangeAlpha = true;
j = 0;
while (j < (_root.FenyCount - 1)) {
this["FenyFeher" + j]._alpha = this["FenyFeher" + j]._alpha / 1.03;
j++;
}
}
} else {
i = 0;
while (i < (_root.FenyCount - 1)) {
this["FenyFeher" + i]._alpha = 0;
i++;
}
this._xscale = 100;
this._yscale = this._xscale;
this.gotoAndStop(2);
}
}
Symbol 9 MovieClip Frame 145
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 2
stop();