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
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, 2011, 3:34 PM Sure. I knew there would be bugs in

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
Dear  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: From: Kerry Thompson Subject: Re: [F

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
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: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of nasim h Sent: maandag 22 augustus 2011 9:12 To: Flashco

Re: [Flashcoders] Array problem

2006-09-28 Thread eric dolecki
sorry - i had an off by one error... On 9/28/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: Check your references to other variables and index values, the way you have it is by-the-book correct: var foo:Array = new Array(); foo[0] = {typ:"A", label:"foobar"}; foo[0].typ = "B"; trace(foo[0].typ)

RE: [Flashcoders] Array problem

2006-09-28 Thread Pete Miller
If someIndex != 0 then you have to foo[someIndex] = new Object(); foo[someIndex].typ = "B"; P. >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:flashcoders- >> [EMAIL PROTECTED] On Behalf Of eric dolecki >> Sent: Thursday, September 28, 2006 1:26 PM >> To: Flashcoders mailing l

RE: [Flashcoders] Array problem

2006-09-28 Thread Merrill, Jason
Check your references to other variables and index values, the way you have it is by-the-book correct: var foo:Array = new Array(); foo[0] = {typ:"A", label:"foobar"}; foo[0].typ = "B"; trace(foo[0].typ) //traces "B" Jason Merrill Bank of America Learning & Organization Effectiveness - Technolog