# Perspective

**URL:** <https://forum.kirupa.com/t/perspective/9317>\
**Category:** flash\
**Created:** [December 9, 2002, 6:39pm UTC](https://forum.kirupa.com/t/perspective/9317 "2002-12-09T18:39:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BOla](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@BOla](https://forum.kirupa.com/u/BOla)\
**Post date:** [December 9, 2002, 6:39pm UTC](https://forum.kirupa.com/t/perspective/9317/1 "2002-12-09T18:39:29Z")

</div>

I have read the tutorial [http://www.kirupa.com/developer/mx/perspective.asp](http://www.kirupa.com/developer/mx/perspective.asp)  
and i have a question about it…

The script looks like this:

onClipEvent (load)  
{  
z=0;  
zspeed=5;  
fl=300;  
}  
onClipEvent(enterFrame)  
{  
scale=fl/(fl+z);  
\_xscale=\_yscale=100\*scale;  
z+=zspeed;  
}

Question: How do I stop the object to get negative(upsidedown) when I use zspeed=negative, I want it to stop before it turns around

---

<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 10, 2002, 6:18am UTC](https://forum.kirupa.com/t/perspective/9317/2 "2002-12-10T06:18:00Z")

</div>

good question. Not sure yet.

I’ll take a look when I can

---

<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 10, 2002, 3:54pm UTC](https://forum.kirupa.com/t/perspective/9317/3 "2002-12-10T15:54:01Z")

</div>

yeah, it would be great if U try to figure it out, how to do that, answer me as quickly as U can 🙂
