Мувик b1
Экшн:
function zoomIn()
{
this.onEnterFrame = function ()
{
if (this._xscale < 120)
{
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} // end if
};
} // End of the function
function zoomOut()
{
this.onEnterFrame = function ()
{
if (this._xscale > 80)
{
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
} // end if
};
} // End of the function
b1.onRollOver = zoomIn;
b1.onRollOut = zoomOut;
Экшн:
function zoomIn()
{
this.onEnterFrame = function ()
{
if (this._xscale < 120)
{
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} // end if
};
} // End of the function
function zoomOut()
{
this.onEnterFrame = function ()
{
if (this._xscale > 80)
{
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
} // end if
};
} // End of the function
b1.onRollOver = zoomIn;
b1.onRollOut = zoomOut;