# Zooming Figures modification

**URL:** <https://forum.kirupa.com/t/zooming-figures-modification/38067>\
**Category:** flash\
**Created:** [December 17, 2003, 10:35pm UTC](https://forum.kirupa.com/t/zooming-figures-modification/38067 "2003-12-17T22:35:37Z")\
**Posts on this page:** 3\
**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/38067/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;  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 23, 2003, 4:14am UTC](https://forum.kirupa.com/t/zooming-figures-modification/38067/2 "2003-12-23T04:14:13Z")

</div>

not sure what you mean. for my footer in the contest i used hitTest in combination with z distance to calculate when something was bumped.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 23, 2003, 4:18am UTC](https://forum.kirupa.com/t/zooming-figures-modification/38067/3 "2003-12-23T04:18:19Z")

</div>

yes… more or less. Those if/else statements control the back and forth movement of the figures. Depending on how you want your ‘figures’ to move, these statements may change or not even exist. If you dont want them to go back and forth, you can ommit them… but it sounds like you may instead want to edit them to have a goto call when the z reaches a certain point … whether more than 5500? or maybe less thatn -300? Its up to you based on what you use in that if statement.
