# Drawing a Graph from an Array

**URL:** <https://forum.kirupa.com/t/drawing-a-graph-from-an-array/127648>\
**Category:** Uncategorized\
**Created:** [November 4, 2004, 9:55pm UTC](https://forum.kirupa.com/t/drawing-a-graph-from-an-array/127648 "2004-11-04T21:55:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veryfine007](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@Veryfine007](https://forum.kirupa.com/u/Veryfine007)\
**Post date:** [November 4, 2004, 9:55pm UTC](https://forum.kirupa.com/t/drawing-a-graph-from-an-array/127648/1 "2004-11-04T21:55:35Z")

</div>

I’m not sure why but I can’t get this to work. I’m just trying to make a graph based on my array. Each piece of my array is (x,y).

root.createEmptyMovieClip (“graphedlines”, 10);  
with (\_root.graphedlines){  
lineStyle (5, 0x000000, 100);  
moveTo (aray[0])  
lineTo (aray[0])  
lineTo (aray[1])  
lineTo (aray[2])  
lineTo (aray[3])  
lineTo (aray[4])  
lineTo (aray[5])  
lineTo (aray[6])  
lineTo (aray[7])  
}
