
Код:
for (i = 1; i <= 2; i++) {
var mc = this["p" + i];
mc.i = i;
mc.onPress = function () {
getURL (URLs[this.i]);
};
mc.onRollOver = function () {
this._xscale += numScale;
this._yscale += numScale;
trace (this._xscale + ":" + this._yscale);
};
mc.onRollOut = function () {
this._xscale -= numScale;
this._yscale -= numScale;
trace (this._xscale + ":" + this._yscale);
};
}