# How to scale the mc to the entire page

**URL:** <https://forum.kirupa.com/t/how-to-scale-the-mc-to-the-entire-page/174677>\
**Category:** Uncategorized\
**Created:** [January 8, 2006, 2:51am UTC](https://forum.kirupa.com/t/how-to-scale-the-mc-to-the-entire-page/174677 "2006-01-08T02:51:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric\_chua](https://avatars.discourse-cdn.com/v4/letter/e/f9ae1b/32.png) [@eric\_chua](https://forum.kirupa.com/u/eric_chua)\
**Post date:** [January 8, 2006, 2:51am UTC](https://forum.kirupa.com/t/how-to-scale-the-mc-to-the-entire-page/174677/1 "2006-01-08T02:51:20Z")

</div>

Hi there, I had done a mc and want this mc to scale until fits the entire screen(center of the screen) after have some motion tweening. So how could I do that ? Notice that my MC location is from everywhere, that means it can come from left, right, bottom left, or bottom right, and I want it to scale until fits the entire screen. I have some script here:

```auto
onClipEvent(enterFrame)
{
	if(_root.card._currentframe == 31) //after it had done some motion tweening
	{
		_root.card.stop();
		_root.card._xscale += 70;//start scaling
		_root.card._yscale += 70;//start scaling
	}
}

```

The code above its just a normal no-ending scaling, so how can I archieve my requirements. Someone please guide me, thanks!
