<pre>
// Help : "loader_mc" esme movieclipie toie component k axeto load mikone.
var mainObject:MovieClip = this.loader_mc;
// Help : "mask_mc" esme ye movie clipe digast k gharare masket bashe
var masking:MovieClip = this.mask_mc;
var zoomWidth:Number = 300;
var zoomHeight:Number=300;
duplicateMovieClip("mainObject", "zoomObject_mc", this.getNextHighestDepth());
zoomObject_mc._width = zoomWidth;
zoomObject_mc._height = zoomHeight;
zoomObject._x = mainObject._x - (mainObject._width / 2);
zoomObject._y = mainObject._y - (mainObject._height / 2);
zoomObject.setMask(masking);
zoomObject.onRollOver = function () {
masking.startDrag();
}
zoomObject.onRollOut = function () {
masking.stopDrag();
}
zoomObject.useHandCursor = false;
</pre>