# Zooming

**URL:** <https://forum.kirupa.com/t/zooming/155090>\
**Category:** flash\
**Created:** [July 14, 2005, 5:29pm UTC](https://forum.kirupa.com/t/zooming/155090 "2005-07-14T17:29:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [July 14, 2005, 5:29pm UTC](https://forum.kirupa.com/t/zooming/155090/1 "2005-07-14T17:29:32Z")

</div>

Hello!  
I have an problem with zooming…  
I zoom with the use of

```auto

onClipEvent (enterFrame) {
	if(_root._yscale >= 150){
		_root._yscale = 150}
	if(_root._xscale >= 150){
		_root._xscale = 150}
[color=Red]if(Key.isDown(90)){
	 _root._xscale+=25
	 _root._yscale+=25
}else{
	_root._xscale=100
	_root._yscale=100
}[/color]
_x = _root._xmouse;
_y = _root._ymouse;
}

```

but then when i press the ‘Z’ the picture goes to much to the right … I tried to stabilise it with

```auto

	_root._x = this._x
 	_root._y = this._y

```

but that didnt work…  
Does anyone got a sollution for this problem?
