Danny,
Thanks a lot.  You've been a big help!

On 11/15/06, Danny Kodicek <[EMAIL PROTECTED]> wrote:

> Danny,
> Right now I have some data plotted using moveTo and fill...
> it works fine.
> It's the rest I that i don't know how to achieve.  Someone
> even mentioned that I should instead plot all points as
> movieclips.  I've got a point/pixel

All right. Your data are stored as some kind of array, presumably? So
you're
drawing lines from one point to another. So what you need is a system for
selecting an area of the graph, converting it to a region of x-values,
recalculating the corresponding y-values and putting them into the array.
Then you'll redraw your graph to give the final result, yes?

So: selection: on mouseDown, store the x-position. On enterFrame, look for
the current x-position and draw a nice semi-transparent rectangle over
your
graph in the appropriate position. On mouseUp, find the leftmost
x-position
and convert to an x-value in your array, and the same for the rightmost
x-value. This gives you a start and finish point for your recalculation.
Calculate your values, redraw the graph and you're done.

Any help?
Danny

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to