ActionScript Code:
item_mc.onMouseDown=function(){
this.targetScale=(this.parent._xmouse+this._parent._ymouse)*2;
this.onEnterFrame=this.scaleMe;
this.acceleration=12;
this.friction=0.8;
item_mc.scaleMe = function(){
var scaleDiff = this targetScale-this._xscale;
this.scaleSpeed += scaleDiff/this._parent.acceleration;
this.scaleSpeed*= this._parent.friction;
this._yscale= this._xscale+= this.scaleSpeed;
this.checkScale();
}
then
ActionScript Code:
item_mc.checkScale = function(){
if (Math.abs(this.targetScale-this._xscale)<0.2 {
if (Math.abs(this.scaleSpeed)<.02){
this._xscale = this.y_scale= this.tagetScale;
delete this.onEnterFrame;
}
}
};
So when the user clicks a section of the movie, your item_mc scales.
I pulled this code straight out of FlashMX Studio by friends of Ed.
Maybe you should buy this book if the above code interests you.It has plenty of scaling examples