PDA

Click to See Complete Forum and Search --> : dynamically drawing a graph



rasha ali
09-14-2002, 09:53 PM
hello everybody,
i need to dynamically draw a graph,by letting the user enter some values for (x,y) points, i shoud have these points appearing on the graph in their approberiate place till i have 6 different values and six different points each with different color i can join these points at any stage having a line resembling the relation , how could i ??????

THANKS IN ADVANCE :)

Duncher Muncher
09-16-2002, 03:26 AM
Use the drawing API i.e. lineTo(x,y);

UnderTheSun
09-18-2002, 06:48 AM
if ur using flash 5 just duplicate movie clip of a line

Ed Mack
09-19-2002, 04:30 PM
Make a line clip, that has a line going from the center, to (100,100). To make this line go from point x,y to point x',y' do this:

Set the clip's _x to x and _y to y
Set it's _xscale to x'-x
Set it's _yscale to y'-y

And that's it :D