Frame 1
function setBalls(mc) {
var _local4 = new Object({x:0, y:0});
mc.localToGlobal(_local4);
i = 0;
while (i < 2) {
b = 0;
while (b < 2) {
var _local2 = this.attachMovie("pallo", "pallo" + balls, balls);
_local2._xscale = (_local2._yscale = mc._xscale / 2);
_local2.W = _local2._width;
_local2.H = _local2._height;
_local2._x = (_local4.x + ((b * mc.W) / 2)) - (mc.W / 4);
_local2._y = (_local4.y + ((i * mc.H) / 2)) - (mc.H / 4);
_local2.col = Math.random() * 16777215;
_local2.my_color = new Color(_local2);
_local2.my_color.setRGB(_local2.col);
_local2.onRollOver = function () {
trace(this._xscale);
if (this._xscale > 5) {
this.play();
delete this.onRollOver;
} else {
delete this.onRollOver;
}
};
balls++;
b++;
}
i++;
}
transObj = {ra:100, ga:100, ba:100, aa:100, rb:0, gb:0, bb:0, ab:0};
mc.my_color.setTransform(transObj);
}
var balls = 0;
pallo.W = pallo._width;
pallo.H = pallo._height;
pallo.gotoAndStop(pallo._totalframes);
pallo.onRollOver = function () {
this.play();
delete this.onRollOver;
};
Symbol 3 MovieClip [pallo] Frame 1
stop();
Symbol 3 MovieClip [pallo] Frame 14
stop();
_root.setBalls(this);