I'm having a path-related problem, only I'm not sure what it is. I have a swf that essentially pans & zooms:

Code:
onEnterFrame = function() { 
	S = (slider._y - 25) + 100; 
	w0 = map._width; 
	h0 = map._height; 
	map._xscale = map._yscale = S; 
	w1 = map._width; 
	h1 = map._height; 
	map._x -= (w1 - w0)/2; 
	map._y -= (h1 - h0)/2; 
	restrictMovement(); 
}
Every frame, it checks the slider's position, and re-calibrates the _x and _y to retain the center when the map is being zoomed. I then call restrictMovement() which checks the bounds and makes sure the map doesn't scroll out of the viewing area.

The problem is, when I call use MovieClipLoader.loadClip() on this swf, it no longer calls the restrictMovement() function. Any idea why? (The zoom still works, and it still re-calibrates the _x and _y so I know it's using the onEnterFrame event, it's just not calling the function)

Or perhaps there's something wrong in restrictMovement()?

Code:
 
function restrictMovement() { 
	xMin = -map._width + win._width; 
	yMin = -map._height + win._height; 
	
	if(map._x < xMin) { 
		map._x = xMin; 
	}
	else if(map._x > 0) { 
		map._x = 0; 
	}
	
	if(map._y < yMin) { 
		map._y = yMin; 
	}
	else if(map._y > 0) { 
		map._y = 0; 
	}
}
Any help would be appreciated.