sorry i correct it
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:Number= -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 ???????
--- On Mon, 8/22/11, Cor <[email protected]> wrote:
From: Cor <[email protected]>
Subject: RE: [Flashcoders] array problem,loop.plot
To: "'Flash Coders List'" <[email protected]>
Date: Monday, August 22, 2011, 3:17 AM
Not the solution, but I notice you try to add .001 to an integer.
So the var i should be a Number?
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of nasim hhhhh
Sent: maandag 22 augustus 2011 9:12
To: [email protected]
Subject: [Flashcoders] array problem,loop.plot
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
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders