# Scaling effect - mc contains as

**URL:** <https://forum.kirupa.com/t/scaling-effect-mc-contains-as/110250>\
**Category:** Uncategorized\
**Created:** [May 13, 2004, 5:58pm UTC](https://forum.kirupa.com/t/scaling-effect-mc-contains-as/110250 "2004-05-13T17:58:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baeshin](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@Baeshin](https://forum.kirupa.com/u/Baeshin)\
**Post date:** [May 13, 2004, 5:58pm UTC](https://forum.kirupa.com/t/scaling-effect-mc-contains-as/110250/1 "2004-05-13T17:58:38Z")

</div>

Hi guyz,

The goal of this as is to navigate through the mc  
to defined locations.

Movement is defined by \_x and \_y and end values,  
the scaling that’s done here is a simple \_x/yscale value.  
The scaling has a very abrubt nature, because it jumps  
logicaly from the current size to the new defined size.

My goal is to achieve a smooth scaling effect.

```auto
onClipEvent (load) {
	_x = 0;
	_y = 0;
	_xscale = 30;
	_yscale = 30;
	div = 5; 
}
 
onClipEvent (enterFrame) {
	_x += (endX-_x)/div;
	_y += (endY-_y)/div;
 
	_root.Amsterdam.onRollOver = function() { endX = -400;
		endY = -350;
		_xscale = 150;
		_yscale = 150;
	};
	_root.England.onRollOver = function() { 
		endX = -30;
		endY = -80
		_xscale = 75;
		_yscale = 75;	
	};
	_root.Greece.onRollOver = function() { 
		endX = -575;
		endY = -510;
		_xscale = 100;
		_yscale = 100;
	};
	_root.Italy.onRollOver = function() { 
		endX = -270;
		endY = -350;
		_xscale = 80;
		_yscale = 80;
	};
	_root.Spain.onRollOver = function() { 		
endX = 50;
		endY = -380;
		_xscale = 90;
		_yscale = 90;
	};
	_root.Sweden.onRollOver = function() { 
		endX = -200
		endY = 50;
		_xscale = 60;
		_yscale = 60;
	};
}

```

This is my first post on the Kirupa forums and english  
is not a common language where I’m from, so please  
say so if this isn’t a clear request. =)

Thanks in advance,

Tae Min.
