# Limit of lines/objects in AS? (PLEASE HELP !)

**URL:** <https://forum.kirupa.com/t/limit-of-lines-objects-in-as-please-help/283829>\
**Category:** Uncategorized\
**Created:** [March 11, 2009, 4:14pm UTC](https://forum.kirupa.com/t/limit-of-lines-objects-in-as-please-help/283829 "2009-03-11T16:14:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![enridp](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@enridp](https://forum.kirupa.com/u/enridp)\
**Post date:** [March 11, 2009, 4:14pm UTC](https://forum.kirupa.com/t/limit-of-lines-objects-in-as-please-help/283829/1 "2009-03-11T16:14:46Z")

</div>

Hi !  
I have a really big problem, I have a really simple source in ActionScript, but it has a lot of lines, more than 60000. (you can download the code here: [http://usuarios.arnet.com.ar/entidp/as.zip](http://usuarios.arnet.com.ar/entidp/as.zip))  
If I include the code in Flash, something like:  
include “as.as”;  
Then it does not compile (at really it generates a .swf file of 0 kb)  
But If I comment some parts of the code, so the lines goes down to 50000 approx it works fine.  
Even more, if I add the code inside “as.as” in my frame, from the IDE, it compiles with more lines.  
I think is a Flash limitation, but I don’t know how to solve that.  
Please I need help with this

Thanks !!!  
E.

PS: the code is really simple, it’s just a list of point coord.  
something like:

```auto
var pathManzana:GraphicsPath = new GraphicsPath(new Vector.<int>(), new Vector.<Number>());
var vectorManzanas:Vector.<Manzana> = new Vector.<Manzana>(2132);
pathManzana.commands.length = 10;
pathManzana.commands[0] = 1;
pathManzana.commands[1] = 2;
pathManzana.commands[2] = 2;
pathManzana.commands[3] = 2;
pathManzana.commands[4] = 2;
pathManzana.commands[5] = 2;
pathManzana.commands[6] = 2;
pathManzana.commands[7] = 2;
pathManzana.commands[8] = 2;
pathManzana.commands[9] = 2;
pathManzana.data.length = 20;
pathManzana.data[0] = 1315.7;
pathManzana.data[1] = -1381.8;
pathManzana.data[2] = 1326.3;
pathManzana.data[3] = -1432.1;
pathManzana.data[4] = 1277;
pathManzana.data[5] = -1438.6;
pathManzana.data[6] = 1273.7;
pathManzana.data[7] = -1426.8;
pathManzana.data[8] = 1262.3;
pathManzana.data[9] = -1408.8;
pathManzana.data[10] = 1253;
pathManzana.data[11] = -1400.2;
pathManzana.data[12] = 1245.9;
pathManzana.data[13] = -1395.3;
pathManzana.data[14] = 1246.1;
pathManzana.data[15] = -1394.1;
pathManzana.data[16] = 1257.3;
pathManzana.data[17] = -1391.1;
pathManzana.data[18] = 1315.7;
pathManzana.data[19] = -1381.8;
vectorManzanas[0] = new Manzana(pathManzana, 255);

```
