ActionScript 2.0 :: Create Medical Dosage Calculator?
Sep 10, 2005
I have attached a body mass calculator movie and I have been trying to edit this movie to meet my requirements, with not much success.
What i am trying to do:
I am trying to create medical dosage calculator. What this is - it will allow patients to enter their weight in stones - pounds and then depending on their weight it determines how much medication they need - for example 100mg. It is to help patients asertain if they are on the correct dosage and not over medicated - this calculator will allow them to be able to work out their dosage correctly. This is how i envisioned it working: Patients would be required first to enter their weight in stones and pounds which would automatically be converted into kg - the kg will then determine the dosage.
Therefore two input boxes would be required, one for stones one for pounds. If the pounds box is the only one filled in / for example the user only knows their weight in pounds the stones box can be left blank. They would then click a 'calculate' button and their dosage - for example - 100ml would appear. Depending on the weight converted from stones and pounds to kg is then used to calculate the dosage.
I have tried endlessly to edit the attached file without any success. I think this is just too complex for me. So i thought i'd see if anyone might be able to help! I don't think it is that far removed from this body mass calculator i have attached, but i it just screws up when i try editing this to fit my requirements. If anyone have made something like this before
View 2 Replies
Similar Posts:
Jul 27, 2009
I need to create a calculator (url...) were you can enter in cost in one box and automaticaly it calculates 30% and displays that figure in a total box.
I know a fair amount of action script 2 but now this has to be done in ac3 and I'm very lost.I've tried doesn't seem to work correctly in AC2 or AC3.
View 5 Replies
Nov 12, 2009
i'm trying to create a roi calculator using two combo boxes. Box 1 how many treatments 5,10,20 Box 2 cost per treatment 90, 100, 120 then button to calculate treatment x cost and a dynamic text field to display result. I am using Flash CS4, am I wasting my time with combo boxes I have searched flsh docs all day.
View 3 Replies
Nov 9, 2006
I need to know to create a calculator. By the way I'm using Flash 8 pro.
View 9 Replies
Aug 16, 2010
How to create a decent calculator in actionscript 2. I was hoping to create on with, just one input box and the user could put something like 5 * 2 + 10 - 2, in the input box and then the computer would be able to work it out.
View 2 Replies
Aug 23, 2010
I have a list of items inside arrays containing names and prices. I want when i click a button it should go into ARRAY1 grab the name, then ARRAY2 grab the price and put it in a container box. If i click the same button again it should update the quantity field. Take a look at the image below. [URL]
Im trying to use a parent child system where when i click the button, it adds a movie clip child that contains 3 dynamic fields, to the main container and populates these fields with quantity based on how many times i click button 1 and then the name and the price will be multiplied by the quantity. If i click button 2 the same process repeats and at the end it shows the total of all items in the list.
View 3 Replies
Oct 12, 2006
A friend was asked to create a calculator which adds several variables together and produces an output which has other pre-determined variables added or subtracted...[code]The problem now is that the people that asked for it forgot to say they needed a further calculation which between us we just can't work out! Basically, if net_estate is under 285000, then tax_liability is to be 0. but if it's over 285000 then tax_liability = 40 / 100 * net_estate (as in the above code).
View 2 Replies
Jul 19, 2007
how to create a flash calculator using arrays?
View 3 Replies
Feb 1, 2011
I have to create calculator in Action Script 2.0 with Flash8. But I have to use OOPs, for that. OOPs's use is necessary.Can you give me some code regarding.
View 1 Replies
Jan 11, 2011
i'm trying to create a loan calculator and i have things going but i get a NaN result when i hit the calculate button
[Code]....
View 14 Replies
Apr 2, 2012
How do I create a normal calculator using Adobe Flash CS 4 & Action Script. I created a calculator using buttons & layers in CS4 but the result is coming as NaN?
View 4 Replies
Dec 13, 2009
Basically what I am trying to do is show a medical cartoon, that at various times, the user can click on a button to say "I want to read more about this point later". This will allow them to continue watching the cartoon, and at the end be taken to an HTML page that shows them the list of points they selected for further research. It's like creating a shopping list for further reading.
SWF output version 8
AS 2
View 7 Replies
Mar 1, 2009
I'm trying to put together a simple calculator form, all it needs is the quantity, the price, and a price total.
View 3 Replies
Aug 3, 2009
I have a BMI calculator that is currently working well, however when calculated, gives a VERY precise result of:Your BMI is: 24.343121332458201.I'd like it to round up/down so it just displays:[code]
View 2 Replies
Dec 4, 2010
Looking for a readymade flash calculator.I need that as a movie clip.
View 1 Replies
Jul 29, 2009
I am working a calculator with a textfield. It can calculate a if a enter only one number, but when I try to enter two or three doesnt work. I have test several codes but they are not working at all.
var numeroEntrado = "";
var campoUno:int = 125;var campoDos:int = 20;var elResultado1 = 0;var elResultado2 = 0;
proteinas.text = "125 grs.";colesterol.text = "20 mml.";colesterol.backgroundColor = 0x9999FF;textoColesterol.backgroundColor = 0x9999FF;
numeroPorciones.maxChars = 3;numeroPorciones.restrict = "0-9";
btn.addEventListener(MouseEvent.MOUSE_UP, suma);
[Code] .....
View 4 Replies
Aug 4, 2009
I need to use the ComboCox component within a calculator.
I need to combobox data value to be populated by an input text field on the stage.
Basically depending on which of the choices they select from the dropdown menu the calculation made will be made using one of several previously input numbers by the user.
View 3 Replies
Jul 10, 2011
Make changes to the MakeChange.fla application, such that the user enters in the amount of change. The program calculates the number of coins necessary to make change for an amount less than 100 cents. The program should have variables for the amount, number of quarters, number of dimes, number of nickels, and number of pennies. Display all of the information clearly in the output of the program.
View 4 Replies
Dec 20, 2011
I'm trying to get a Profit and Loss calculator working in ActionScript 2.The red text in the yellow highlighted cells is what the user can change. They click a calculate button and the number of total value for lemons * Unit cost is supposed to be updated.[code]When the calculate button is pressed
View 2 Replies
May 4, 2010
I need a calculator for a flex app I am making, and was wondering if there was any official widget prebuilt or already in good quality. I could make one myself but it would be nice to use one that already existed and had a nice api to customize it with.
View 1 Replies
Jul 27, 2009
Need pointers from the good folks here. I need to create an interface illustrated in the link below:
Calculator-like interface (GIF)Scenario 1) When the user clicks either the button 30 or 60, it will update dynamic textfield (value1) with the corresponding value 2) When the user clicks either the button 45 or 73, it will update dynamic textfield (value2) with the corresponding value
3) Dynamic textfield (output) will dynamically add the values of 'value1' and 'value2' and generate the total.
How do I go about scripting the interface?
View 1 Replies
Aug 3, 2009
I have a BMI calculator that is currently working well, however when calculated, gives a VERY precise result of:Your BMI is: 24.343121332458201I'd like it to round up/down so it just displays:Your BMI is: 24.3
Code:
var totalHeight:Number;
var totalHeightx2:Number;
[code].....
View 3 Replies
Aug 1, 2010
I am trying to create a script, where the user inputs a maths equation (something simple like 5 + 2 * 10), I have managed to break down the text into an array and have the numbers in one array and the symbols in another, I wanted the computer to then work it out, however I cant seem to think of how to do this and the methods that I have tried have failed.So there is one dynamic box and the value of that is then broken down by an array split(" "), however this leaves the values in an array and it is percieved as a string not a number and so when i try to work it out
View 1 Replies
Dec 4, 2010
Looking for a readymade flash calculator. Any body has done before or willing to do a simple flash calculator.I need that as a movie clip.
View 6 Replies
Jul 16, 2010
I was thinking of developing a free online calculator in flash. It would be a standard calculator with basic functions like "+", "-", "*" etc. and an advanced calculator with more functions which would be similar to the scientific pocket calculator.
And I have a dilemma regarding the standard calculator. It's about the way it does the calculations. How would you expect a basic calculator (not an advanced one) to calculate this expression: 1+2*3 equals 7 or 9? On paper the result is clearly 7 but basic pocket calculator calculates the expression in line, unaware of the higher priority operators and give you 9 as a result to the expression above.
In the advanced version of the online flash calculator this expression would equal 7 but I have doubts about what people expect from a basic calculator.
View 1 Replies
May 8, 2009
Is there a simple way of pressing a button on a flash calculator to calculate the square root (sqrt)? I cant find anything about it. for example
Code:
// Tangent of the angle in degree
function Dotan () {
if (display == 90) {
display = "Infinity";
[code]....
View 4 Replies
Jun 15, 2009
I am currently trying to design a Savings calculator for my client's website (in Flash CS3). This is my 'trying to learn Flash' project so to speak.I have attached a jpeg of the calculator I have designed (and noted the inputs and outputs FYI).
Below is the actionscript so far - please bear in mind that I have sourced some of this code from researching online, and most of it I know is incorrect but I have included it to show what the calculations for the boxes should be. Anything online on Flash calculations seems too simple to apply to what I'm doing. I read that my Calculate button should be a 'Button' but I then read elsewhere that I should choose my button from Components-User Interface-Button but it's properties say that it's a 'Movie Clip'. And I'm clueless as to how to modify this to look like my button design.
Code:
var num:Number;
function Calc() {
num1 = Input1_txt.text;[code].....
View 4 Replies
Jul 16, 2010
I was thinking of developing a free online calculator in flash.It would be a standard calculator with basic functions like "+", "-", "*" etc. and an advanced calculator with more functions which would be similar to the scientific pocket calculator.And I have a dilemma regarding the standard calculator. It's about the way it does the calculations.How would you expect a basic calculator (not an advanced one) to calculate this expression:1+2*3 equals 7 or 9?
On paper the result is clearly 7 but basic pocket calculator calculates the expression in line, unaware of the higher priority operators and give you 9 as a result to the expression above.In the advanced version of the online flash calculator this expression would equal 7 but I have doubts about what people expect from a basic calculator.
View 3 Replies
Apr 20, 2011
I'm in a Web Design class and atm, I'm working on chapter 8 of Flash CS5 case problem.I have to make a calculator. Can I just say that AS3 makes me frusterated? D:Anyway, after I finished what the book told me to do whilst getting confused in some areas, I got many compiler errors. I managed to get rid of them but in the end, my calculator isn't working, haha.
Here's the whole code:
import flash.events.MouseEvent;
calcTotal_btn.addEventListener(MouseEvent.CLICK, calculateTourCost);
function calculateTourCost(event:MouseEvent):void {
[code]....
View 4 Replies
Mar 29, 2010
[URL] Here is the flash file, I feel as if I am almost there, but the calculation doesn't add up.
[Code]...
View 6 Replies