A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Drawing Conics

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    3
    Hello! Anybody out there?

    Anyways, this is the question, and I have been searching every place you can think of on the net. Nobody, and I mean nobody knows the answer.

    I am building a Math Lesson and I want to draw concis on a grid. For example, I want to draw a parabola with the equation y = x^2. This parabola will be drawn on the grid using actionscript code. Now there will an equation y = (x - h) + k, where h, and k will be input boxes which will be the graph so many units left or right, up or down.

    Okay how the hell do you just draw y = x^2, or for that matter any type of function.

    Is there any type of tutorial, books, videos, anything, help!!!

    I have searched high and I have searched low and no answer yet.

    Help!!!!

    Bizzum

  2. #2
    Senior Member ironmallet's Avatar
    Join Date
    Feb 2001
    Posts
    252
    i have a couple ideas, i spent last 20 min on one idea.

    i put a,b, and c into a clip called equation.

    then lined up a bunch of points in a mc called graph. they are each a mc with this code:

    onClipEvent(enterFrame) {
    a=_parent.equation.a
    b=_parent.equation.b
    c=_parent.equation.c

    x=this._x/10;
    this._y=-5*(a*x*x+b*x+c);
    }


    http://www.ironmallet.com/flashkit/grapher.htm

    it's acting funny, I think it's the updating or something, it's something I guess, a starting point.

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Posts
    127
    In the open source files there is a graphing calculator
    that you could rip apart and use.Just use the search mechanism
    bye

  4. #4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center