I have a problem with the function I use in my flash movie that scales movie clips smoothly. The whole thing works correctly, however I quickly noticed that it is a cpu hog even when the site activity is idle. Basically the function that resizes the movieclip only seems to work with the method of onEnterFrame which means the function runs continuously regardless of user interaction and eats up cpu power.

I place the following function actionscript in the timeline. The function is:
Code:
function myScale(myTarget, xScale, yScale) {
	myTarget.onEnterFrame = function() {
		intX = myTarget._xscale;
		intY = myTarget._yscale;
		newX = xScale;
		newY = yScale;
		newSizeX = intX+((newX-intX)/4);
		newSizeY = intY+((newY-intY)/4);
		myTarget._xscale = newSizeX;
		myTarget._yscale = newSizeY;
	
	
		diffX = initX-this._x;
		posX = (posX+diffX/10)*0.9;
		diffY = initY-this._y;
		posY = (posY+diffY/10)*0.9;
		this._x += posX;
		this._y += posY;
	
	}
}
So in my flash movie if I want to resize a movie clip (named "movieclip" in this case) to 80% width by 80% height, I would put the following actionscript in a button.
Code:
myScale(this.movieclip, 80, 80);
Is there anyway to do this differently so the function is not running continuously or perhaps a different function all together. Basically I am looking for any solution that will get me the same effect without eating up cpu power when the site is idle.

To help better understand what the effect looks like, here is the current iteration of it on my site. http://www.flashevolved.com/glasstest/index.html

If you open up your performance monitor on your computer you will notice that even when you do not click anything the site will still use a large quanity of cpu power. The performance being the result of the function is also confirmed by changing the frame rate of the flash movie. When I reduced the frame rate to 10 the cpu power used when idle dramatically decreased but still remained in use.

I greatly appreciate the help of all the action script pros out there.

Thanks