ActionScript 2.0 :: Put Together A Simple Calculator Form?
Mar 1, 2009I'm trying to put together a simple calculator form, all it needs is the quantity, the price, and a price total.
View 3 RepliesI'm trying to put together a simple calculator form, all it needs is the quantity, the price, and a price total.
View 3 RepliesI'm new to Flash and I created a simple calculator using a button function. I need it to output a number as a currency and I'm having trouble doing so including the formatting [URL] I'm sure it's a simple fix...
View 0 RepliesI'm trying to build a form with numerous fields with different values and a total price I have attached an image so you can get a better understanding of it all (note, i've just filled the form with rubbish but i think it's just about understandable!) I'm sure it's not as hard as I think, but seeing as I wouldnt know where to start building it I am need of some direction?
View 1 Repliesim trying to make a simple BMI (Body Mass Index) Calculator but it doesn't seem to be working
my code is:
on (release) { BMI_SUM = (Number(WEIGHT_INPUT.text) / Number(HEIGHT_INPUT.text * HEIGHT_INPUT.text)); _root.BMI_FINAL.text = BMI_SUM; }
the BMI_FINAL.text box always displays NaN, and when traced it says Undefined and the code looks sound but i cant get it to work.
I am trying to create a simple form using Actionscript 3 that will collect data from a form, then pass that data to an asp file. I have attached the following code to the submit button,but this is not working.I'm not sure if I have to add anything else and I don't understand why this is not working. I'm trying to load all the variable info into one variable called email form.
submit_btn.onRelease = function() {
var emailform:text;
emailform.email_txt = email_txt.text;[code]......
I've been learning actionscript 3 for the past few days and really enjoying it. However I've spent hours trying to find out how to do something very simple in HTML. Say I have a form like this...
<form id="form1" name="form1" method="post" action="http://website.com/form">
<input type="text" name="your-name" id="your-name" />
<input type="text" name="email" id="email" />
<input type="submit" name="submit" id="submit" value="Submit" />
</form>
How do I make it in Actionscript 3?
I'm trying to create a very simple flash:An input text field, in which the viewer is to enter a simple word (in this case, let's say the word is "earth.") Beneath this text field is a button.When the button is clicked, flash should detect whether the user entered the word "earth"- if they entered "earth", they get sent to frame 2 of this movie. If they typed something else, then they get sent to frame 3.Now, this should be pretty simple, but every attempt I've made has failed, and every search for a simple tutorial/example of how to compose the script meets with no results. Currently, this is the script I put on the button (The input text field has been given the instance name of "answer_1"):[code]
View 2 RepliesI'm very beginner in Flash. I'm trying to use document class only. I created a textBox and setting some value with
textBox1.text = 10;
When running, the stage flickers.How can I avoid this flickering effect without using code in timeline but only in document class ?
Update: Would like code in both cases:
all programmatically (no objects on stage at design time)put elements on stage with no actionscript in timelines and control them in document class with actionscript.
I am building an order form and here's the basic design:
Layout:
Item - Description - Price - Quantity - Total
Functions:
Print - Send by email
The user types the quantity of items desired and the total is calculated.
My challenge is to build it without dynamic functions.
What I'm missing is the code for typing the desired quantity of items, adding total, printing and emailing the completed form. (Not sure it can be done without php or cfm)
I am building an order form and here's the basic design:
Layout: Item - Description - Price - Quantity - Total
Functions: Print - Send by email
The user types the quantity of items desired and the total is calculated.
My challenge is to build it without dynamic functions.
What I'm missing is the code for typing the desired quantity of items, adding total, printing and emailing the completed form. (Not sure it can be done without php or cfm)
how would i go about uploading my canvas , and some form data (name,e-mail, etc) to a php, and how would i retrieve that data on the php page. i looked at the filereference.upload method and it appears that you have to use the browse method first, thus wouldn't work with uploading the canvas. I also looked at the urlloader and it looks like that only gets data into app..
View 1 RepliesI am new to server side applications and I have been working my brains out on an e-form project.Tried several tutorials and examples that were quite useful in getting me familiar with cfm, php etc. but still can't complete my project.What I want to do: set a simple e-form that adds up prices and then mails the results. No billing, no credit card security stuff involved, just sending the info to the store manager who will use it to invoice.So far, I have a basic form that adds up the items using static, input and dynamic text fields. I also have a simple e-mail form. They both work fine but I need to combine the two. Somehow incorporate the e-mail functions to the "shopping kart" form and email them.
View 1 RepliesTried several tutorials and examples that were quite useful in getting me familiar with cfm, php etc. but still can't complete my project.What I want to do: set a simple e-form that adds up prices and then mails the results. No billing, no credit card security stuff involved, just sending the info to the store manager who will use it to invoice.
So far, I have a basic form that adds up the items using static, input and dynamic text fields. I also have a simple e-mail form. They both work fine but I need to combine the two. Somehow incorporate the e-mail functions to the "shopping kart" form and email them.
I have created a small application with three different slides.
-one at frame 1 which acts as a Home page
-one at frame 2 which acts as a Gallery page
-one at frame 3 which acts as a Contact Page
On the contact page i have the following 'skeleton' code.. which i have to follow..[code]i need basic validation such as text lentgh, and also correct email format (i.e. containing a '@'
I wanted to create a simple flash contact form for my flash website. I went through Lee's tutorial on how to create the contact form and PHP file to go with it. I've uploaded everything to my server and tested the form. My flash form consists of Name, Subject, Message, and Email fields. When I receive the email all that comes through is this with none of the actual message that was written IN the contact form:
Name: Subject: Message: Email: The 'From' field is also blank. I don't know if my problem is with flash, my PHP code, or with my server. Can someone take a look at this and tell me what's wrong? I can't seem to find any errors from Lee's tutorial with my code or labeling.
[Code]...
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.
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 RepliesLooking for a readymade flash calculator.I need that as a movie clip.
View 1 RepliesI 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] .....
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.
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 RepliesMake 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 RepliesI'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 RepliesI 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 RepliesNeed 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?
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].....
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 RepliesLooking 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 RepliesI 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.
I need to know to create a calculator. By the way I'm using Flash 8 pro.
View 9 Replies