hi
In my program create x,y and i should plot it , the number of point are too
much
2*10 ^ 8
i use for to create point depend on it's formula but my for stuck in 10000
with step .001
for( var i:int= -10000 ;i<10000;i+=.001)
{
arr[i]=new object()
arr[i].x=i
arr[i].y=5*Math.sin(20*i);
functiononlinedraw()
}
then in another function i plot the point oe by one by graphics.lineTo(x,y)
if the distance be more than 10000 it will stuck
in loop and give me error more than 15S
my program generate x,y and i should plot it one by one but , i think flash
dont let me plot poin until the loop finished
myproblems
1: how can i do up senario is there better way?
2: Is there a way to set delay in for loop , and i make smal for to show
ploted point that user can see on that time and after delay i full remain on
array ?
how can write this dealy?
3: is this write that array can store data until the last index of them ,and
the last index of them is last integer number ???????
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders