# Zooming Figures modification

**URL:** https://forum.kirupa.com/t/zooming-figures-modification/97111
**Category:** Uncategorized
**Created:** [December 17, 2003, 10:35pm UTC](https://forum.kirupa.com/t/zooming-figures-modification/97111 "2003-12-17T22:35:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pipspeak](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@pipspeak](https://forum.kirupa.com/u/pipspeak)
#### Post date: [December 17, 2003, 10:35pm UTC](https://forum.kirupa.com/t/zooming-figures-modification/97111/1 "2003-12-17T22:35:37Z")

</div>

I’ve tweaked Kirupa’s 3D zooming figures script but there’s one more thing I want to customize it with but cannot figure out how to do it.

Basically I want to execute a command (goto another scene and stop the script) when one of the movieclips (call it figureC) reaches a certain point on the z axis.

Is it a case of adding another if clause at the top of the chunk of code below?

if (this.z \> 5500){  
this.z = 5500;  
this.dir = -1;  
}  
else if (this.z \< -300){  
this.z = -300;  
this.dir = 0;  
}
