A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: ohms law

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    14
    how can I perform ohms law in a circuit and show its output voltage by supplying current and resistance.
    V=I/R

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Posts
    368
    i think you answered your own question. v=i/r

    set i to a value, set r to a value, say v=i/r and do whatever you want with that value.

  3. #3
    Senior Member
    Join Date
    Sep 2001
    Posts
    443
    Like I said from your question in the actionscript forum:

    V = I * R - gotta start with the correct equation!

    Do you want the values of I and R to be inputted by the user, and then display the resultant V? Or do you want to have a range of values of I, with a constant R?

    swills

  4. #4
    Junior Member
    Join Date
    Aug 2002
    Posts
    14

    reply for ohms

    Originally posted by swills
    Like I said from your question in the actionscript forum:

    V = I * R - gotta start with the correct equation!

    Do you want the values of I and R to be inputted by the user, and then display the resultant V? Or do you want to have a range of values of I, with a constant R?

    swills
    I want the values of I and R to be selected by the user by dragging a bar.The values will appear in text boxes.To get the value of V=I/R in another text box, I have to perform calculation.Can I do it with Math?

  5. #5
    Senior Member
    Join Date
    Sep 2001
    Posts
    443
    Yes you can.

    make two "input" text boxes, where the user types in two values for the variables _root.I, _root.R, then a third text box can display the variable _root.V

    And the equation _root.V = _root.I * _root.R can be placed anywhere - but start by putting it on frame 1.


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