Hello,
I need to create a falsh movie that will be able to draw a graph for some math functions (x^2, x^3 and etc.) and I’ve been having some problems:
-
I’v been trying to shift the coordinate system to the center of the stage by adding the shift value to the calculation output, but the graph still appears not centered:
var x;
var y;
_root.lineStyle(1, 0x0000FF, 100);
_root.moveTo(250,250);for (x=-10; x<10; x=x+1){
y=-xx;
_root.lineTo(10x+250, y+250);
} -
The graph doesn’t look good as it is too small and I would like to magnify it, but when I multiply the output by 10 for example, the graph doesn’t look smooth any more.
I would greatly appreciate any help and suggestions.
Mey be anyone knows where I can find some tutorial that would help me.