Flash Action Script - Displaying math graph

I’m new to Flash. All I ever knew was online Pacman uses Flash.

In any case, I just installed Adobe Flash Professional CS6.

What I’d like to do is have the user enter a few values for a math formula, ie: y = ax^2 + bx + c, and then plot the curve on a graph. (x^2 = x raised to the 2nd power)

I wrote such a prorgam on my computer using an old version of Visual basic but I’d like to be able to access it over the web. I’m not even sure if Flash is the best way to go about this, but I hope it’s possible.

The above example is not my end project, but if someone can show me a good way to plot a curve, I’m hoping to use the same techniques to plot curves for other math equations.

Thanks for all,
Guy