# Draw a simple 3D line in CS4 action script

**URL:** <https://forum.kirupa.com/t/draw-a-simple-3d-line-in-cs4-action-script/308407>\
**Category:** flash\
**Created:** [April 22, 2010, 11:42am UTC](https://forum.kirupa.com/t/draw-a-simple-3d-line-in-cs4-action-script/308407 "2010-04-22T11:42:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardwic](https://avatars.discourse-cdn.com/v4/letter/h/54ee81/32.png) [@hardwic](https://forum.kirupa.com/u/hardwic)\
**Post date:** [April 22, 2010, 11:42am UTC](https://forum.kirupa.com/t/draw-a-simple-3d-line-in-cs4-action-script/308407/1 "2010-04-22T11:42:46Z")

</div>

I have a number of sphere’s which have random x, y and z values.  
I thought it would now be simple to create a vector with the x,y,z coordinates on the spheres I want to connect and that would be that.

However the vectors remain in the 2D plain.

I have been searching for simple example of how to do this without success and realise I am doing something quite dumb but if someone could help me out, it would be appreciated.
