Re: [Flashcoders] array problem,loop.plot

2011-08-23 Thread Kerry Thompson
f point type or use 2 > vector of number type??? > is it ok to clear vector by this code  vect.length=0 > best regard > nasim > > --- On Tue, 8/23/11, Kerry Thompson wrote: > > > From: Kerry Thompson > Subject: Re: [Flashcoders] array problem,loop.plot > To: "

Re: [Flashcoders] array problem,loop.plot

2011-08-23 Thread Henrik Andersson
I say, store no pints what so ever. Store the formula needed to compute each point. Then you can just compute the point when actually needed. This way you can plot the graph at any zoom level without sacrificing any quality. ___ Flashcoders mailing l

Re: [Flashcoders] array problem,loop.plot

2011-08-23 Thread nasim hhhhh
code  vect.length=0 best regard nasim --- On Tue, 8/23/11, Kerry Thompson wrote: From: Kerry Thompson Subject: Re: [Flashcoders] array problem,loop.plot To: "Flash Coders List" Date: Tuesday, August 23, 2011, 12:35 AM Hi Nasim, You can certainly create an array of 20,000 elemen

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Kerry Thompson
it > in my program i should fine soulotion to draw online point plz help me > > --- On Mon, 8/22/11, Kerry Thompson wrote: > > > From: Kerry Thompson > Subject: Re: [Flashcoders] array problem,loop.plot > To: "Flash Coders List" > Date: Monday, August 22

RE: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Chris Foster
ust 2011 2:13 PM To: Flash Coders List Subject: Re: [Flashcoders] array problem,loop.plot Dear Kerry Hi I am really apreciate u , one of my bigest problem is when i want create point , my boss want to have an array of point that has distance between -1 to 1 or more than it because when th

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread nasim hhhhh
, Kerry Thompson wrote: From: Kerry Thompson Subject: Re: [Flashcoders] array problem,loop.plot To: "Flash Coders List" Date: Monday, August 22, 2011, 3:34 PM Sure. I knew there would be bugs in my code :-) Actually, you have so many points, you probably don't need to use cu

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Kerry Thompson
ear  Kerry > I 'am really appreciate u ,but the first problem that i didnt use curve to is > it's parameter > it needs 4 parameter  and i cant guess how to define curve point > do u have any idea plz tell me > > --- On Mon, 8/22/11, Kerry Thompson wrote: > >

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread nasim hhhhh
lashcoders] array problem,loop.plot To: "Flash Coders List" Date: Monday, August 22, 2011, 9:41 AM Gerry and Henrik have the right answer. Your computer monitor isn't capable of displaying 20 million points, and Flash will hang, as you have found out. This is untested e-mail AS3, bu

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Kerry Thompson
Gerry and Henrik have the right answer. Your computer monitor isn't capable of displaying 20 million points, and Flash will hang, as you have found out. This is untested e-mail AS3, but I would do it something like this: var pointX:Vector.; //vectors are much faster than arrays var pointY:Vector.

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Henrik Andersson
Use a reasonable amount of points. Don't draw more points than the graph is wide. Consider using curveTo to get smoother lines. Consider using the bulk drawing to reduce the cost of telling flash each point. One method call vs one per point can make a difference. _

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread nasim hhhhh
/ i want to make point in my program and plot it one by one i make i plot i make i plot is there better way? --- On Mon, 8/22/11, Gerry Beauregard wrote: From: Gerry Beauregard Subject: Re: [Flashcoders] array problem,loop.plot To: "Flash Coders List" Date: Monday, August 22, 201

Re: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Gerry Beauregard
On 2011-08-22 , at 16:06 , nasim h wrote: > for( var i:Number= -1 ;i<1;i+=.001) { arr[i]=new object() arr[i].x=i > arr[i].y=5*Math.sin(20*i); > functiononlinedraw() > } Perhaps the problem is simply that you're trying to plot too many points. If you're stepping from -1 to +1000

RE: [Flashcoders] array problem,loop.plot

2011-08-22 Thread nasim hhhhh
at 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 wrote: From: Cor Subject: RE: [Flashcoders] array problem,loop.plot To: "'Flash Coders List'" Date: Monday, August 22, 2011, 3:17 AM Not th

RE: [Flashcoders] array problem,loop.plot

2011-08-22 Thread Cor
: Flashcoders@chattyfig.figleaf.com 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 1 with step .001 for( var i:int= -1 ;i<

[Flashcoders] array problem,loop.plot

2011-08-22 Thread nasim hhhhh
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 1 with step .001 for( var i:int= -1 ;i<1;i+=.001) { arr[i]=new object() arr[i].x=i arr[i].y=5*Math.sin(20*i); functio