# Z problem with 3d lines

**URL:** <https://forum.kirupa.com/t/z-problem-with-3d-lines/282373>\
**Category:** Uncategorized\
**Created:** [February 20, 2009, 10:58pm UTC](https://forum.kirupa.com/t/z-problem-with-3d-lines/282373 "2009-02-20T22:58:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bractar](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bractar](https://forum.kirupa.com/u/bractar)\
**Post date:** [February 20, 2009, 10:58pm UTC](https://forum.kirupa.com/t/z-problem-with-3d-lines/282373/1 "2009-02-20T22:58:15Z")

</div>

Hello,  
I would like to link the red squares to the blue square in 3D with CS4 only (please no papervision or sandy…)  
I’m very closed to the solution but I still have a wrong z (visible when you move the mouse to a corner for instance)

The animation is visible here:  
[http://bractar.phpnet.org/test.swf](http://bractar.phpnet.org/test.swf)

The as code is available here:  
[http://bractar.phpnet.org/Test.as](http://bractar.phpnet.org/Test.as)

The main function is drawLines()

Thank you for your help
