# Hitboxes inside mc scale smaller than parent

**URL:** https://forum.kirupa.com/t/hitboxes-inside-mc-scale-smaller-than-parent/150440
**Category:** Uncategorized
**Created:** [June 7, 2005, 5:22pm UTC](https://forum.kirupa.com/t/hitboxes-inside-mc-scale-smaller-than-parent/150440 "2005-06-07T17:22:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fishbellyrust](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/fishbellyrust/32/784_2.png) [@fishbellyrust](https://forum.kirupa.com/u/fishbellyrust)
#### Post date: [June 7, 2005, 5:22pm UTC](https://forum.kirupa.com/t/hitboxes-inside-mc-scale-smaller-than-parent/150440/1 "2005-06-07T17:22:03Z")

</div>

i’m creating a simple navigation for a portfolio site. on my main (root stage) i have ONE movie clip. inside this movie clip i have all the elements of my website. i’m doing this so the user can scale and move the navigational elements around. this is accomplished by simply placing actionscript on frame 1 on the main (root stage).

```auto
nav._xscale = 60;
nav._yxcale = 60;

```

eventually i will but a slider on the main stage so the user can scale to whatever size.

MY **PROBLEM** IS that everything scales fine, however, the hitboxes become extremely small, and don’t scale with the rest of the elements.

```auto
onClipEvent (load) {
	this._x = 8;
	this._y = 25;
	speed = 2;
}
onClipEvent (enterFrame) {
	if (_root.nav.workInvis.hitTest(_root.nav._xmouse, _root.nav._ymouse, false)) {
		endY = 25;
		_root.nav.cursor._y += (endY-_root.nav.cursor._y)/speed;
	} else if (_root.nav.searchInvis.hitTest(_root.nav._xmouse, _root.nav._ymouse, false)) {
		endY = 80;
		_root.nav.cursor._y += (endY-_root.nav.cursor._y)/speed;
	} else if (_root.nav.contactInvis.hitTest(_root.nav._xmouse, _root.nav._ymouse, false)) {
		endY = 133;
		_root.nav.cursor._y += (endY-_root.nav.cursor._y)/speed;
	}
}

```
