Hi Nasim,
You can certainly create an array of 20,000 elements (or two Vectors,
as I did, with a smaller number).
The problem is, I don't think you can display that many points. How
big is your stage? I had mine set to 1024 x 768, which is normally
about as high as you want to go.
You don't need
Nasim,
As you already know, pre-calculating all those data points is too much work for
Flash, and it's also way more points than any monitor can show at one time.
Why don't you try calculating only the points you need, only when you need
them? Tell your boss that 'having an array of points' fro
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 the user want scale graph i should use that
stoored point to calculate new graph , but the
Sure. I knew there would be bugs in my code :-)
Actually, you have so many points, you probably don't need to use
curveTo(). lineTo() would probably work for you, and it just takes two
parameters.
Here's a class I wrote that draws something. It's probably not what
you want, but it works, at least
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: [Flashcoders] a
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.
Hi,
I am facing a monster debugger issue where in it stops displaying traces after
a huge number of traces already been displayed. I am using the latest, 3.0.1
and have the latest flash player debugger.
Any fix or work around ?
many thanks,
Arindam
___
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.
_
but the most problem is for loop i think flash dont do any thing until the loop
finishde
i need to use smal step because if the step is big the graph will be show like
line to line , it s ugly graph
and the distance that i use for loop is more importatnt for me i want to show
2*10^8 distance /
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
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 1
with step .001
for( var i:Number= -1 ;i<1;i+=.001) { arr[i]=new object() arr[i].x=i
arr[i].y=5*Math.
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
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
13 matches
Mail list logo