Zoom Function sometimes works A/S2

Hi All,

I have a zoom tool icon that when pressed launches this function:


/*ZOOM A/S*/

_root.zoomer.onPress = function()
{
    this._alpha = 0;
    var    scale = 100*(_root.dropZone._width/this._width);
    var thisx = (this._x -_root.dropZone._x)*(-1);
    var thisy = (this._y - _root.dropZone._y)*(-1);

    _root.dropZone._xscale = _root.dropZone._yscale = scale;
    _root.dropZone._x = thisx*(scale/100);
    _root.dropZone._y = thisy*(scale/100);     
}

_root.zoomer.onRelease = _root.zoomer.onReleaseOutside = function()
{
    resetZoom();
}

function resetZoom()
{
    _root.zooming = false;
    _root.dropZone._xscale = _root.dropZone._yscale = 100;
    _root.dropZone._x = 0;
    _root.dropZone._y = 35;
    _root.zoomer._x = 7000;
}

zoom.onRelease = function()
{
    _root.zoomer._x = 584;
    _root.zoomer._y = -124;
    _root.zoomer._alpha = 50;
    _root.zooming = true;
    
    _root.line.clear();
       onMouseDown = null;
       
       myColor = new Color(_root.crayon); 
          myColor.setRGB(0xFFFFFF);
    
    _root.onMouseMove = function()
    {
        if(_root.zooming)
        {
        _root.zoomer._x = _xmouse - zoomer._width/2;
        _root.zoomer._y = _ymouse - zoomer._height/2;
        updateAfterEvent();
        }
    }
}

On the stage is a drop zone that plays external swfs using:

var loader_mc:MovieClipLoader = new MovieClipLoader();
loader_mc.loadClip("content/indications.swf", "dropZone");

Sometimes the zoom tool works and sometimes it doesn’t and for some reason I can’t figure out why. One of the weirdest things is that on one SWF it won’t zoom on one part but will on the second part.

Does anyone see anything that might throw this off?

Thanks.