# Graphics.lineStyle and arrays

**URL:** <https://forum.kirupa.com/t/graphics-linestyle-and-arrays/228668>\
**Category:** Uncategorized\
**Created:** [June 10, 2007, 10:59am UTC](https://forum.kirupa.com/t/graphics-linestyle-and-arrays/228668 "2007-06-10T10:59:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan0](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@Dan0](https://forum.kirupa.com/u/Dan0)\
**Post date:** [June 10, 2007, 10:59am UTC](https://forum.kirupa.com/t/graphics-linestyle-and-arrays/228668/1 "2007-06-10T10:59:33Z")

</div>

Hey!  
I have this script I wrote for AS2 and remade it for AS3. I still don’t know like anything really with AS3, but was just trying things out. I chose an example I had made in AS2 that just uses line drawing techniques to create the image on the stage.  
So I used  
this.graphics.lineStyle(1,0x000000,0.1);  
Which is drawn about 20 times a frame and it just as laggy as in AS2, which is a disapointment to me because I thought it would draw much faster, but it doesn’t. I might be doing somthing wrong, and I don’t know what information I should put here but any comments would be welcome!  
Also how can I create the variables:  
var curX:Array = [];  
var curY:Array = [];  
In a list form like this:  
var curX:Array, curY:Array…  
because I tried it and the actionscript has a spastic on me becuase it wants the = [];

Thanks for all the help,  
Dan

🅱
