ActionScript 3.0 :: "Unusual" Conversion Calculator?
Apr 12, 2011
i have a project I am working on which requires many conversions. I am currently doing it manually and it's starting to make me crazy. I was told this could be done in Flash, which would be great, but I have little skill with Flash, and I'm not really sure where to start. What I need to do is:
1. Convert unorthodox units of measure to conventional units (mm/cm and inches/feet). These "unorthodox" units of measure are based on conventional units, so it's just a matter of saying a "widget" = 9.5mm (or) 0.3740063645"... etc. (just a simple example). There are 3 different unorthodox units in total, each with its own value.
2. To complicate things the unorthodox units are affected by "classes". (Here is another basic example)... say there are four classes of widget,
[Code]...
View 2 Replies
Similar Posts:
Mar 13, 2012
im trying to create a conversion utility that uses number input via calculator style buttons to generate conversion for the following distances:
-Miles to/from KM
-cm to/from mm
-binary to/from decimal
Now i was thinking of possibly having the options contained within an drop down and an input text field where the numbers are entered via the calculator buttons. The only thing im struggling with is how to perform the actual calculations on the different formats. Has anyone had to do anything similar in the past? Ive only found currency conversion examples and not sure how to apply that to these conversions.
View 8 Replies
Jul 27, 2009
I have a clock image that has a space for the day (eg: M, Tu, etc)a space for the month (spelled out) and a space for the date. It refers to a page I'm working on in Flash CS4. I'd like it to show the correct date in a specific type style. How do I program that?
View 3 Replies
Jan 26, 2012
[code]...
The RD is just a number, but it was a malicious transfer up to 10GB of data, or very large data.
View 4 Replies
Jan 25, 2009
I get the error "A script in the movie caused Flash Player 10 to run slowly."I'm doing a preload of an external swf via as2 which is around 7mb. Then the message "A script in the movie caused Flash Player 10 to run slowly" pops up around ever 15 seconds or so. However, this does happen with smaller files. Any suggestions? Many visitors may think the game is broken and leave the page.[code]I would also be happy if this problem is solved instead. Around 70%, some times 20% the sound of external swf plays. How can I define it so that sound does not play. I was suggested by some to insert an empty first frame, but I don't have source of all the games. so that is not a solution.
View 3 Replies
Dec 13, 2010
I am dynamically loading an image into a movieclip using a preloader but cannot successfully calculate the percent loaded since I cannot get the getBytesTotal() method to work. I understand why it is not printing the percentage but what I do not understand is how getBytesTotal is behaving. Here is a segment of my output. l means loaded and t means total.
Code:
l = 0
t = -1
[code]......
View 9 Replies
Nov 13, 2009
I want to use a non-standard font on the web in a various combinations of font-color and font-size without having to assign individual configs for each. So far sIFR seems to pick up font-size no problem. but not font color, so I am working on a work around.
The problem I am running into: sIFR is breaking text to the next line without a linebreak <BR> being present.
[Code]...
For the sake of the project I am working on, it looks like setting the standard to block level elements only with font-sizes of 18px and above will be the route taken to keep from holding it up further, but I still have personal interest and would like to pursue understanding sIFR and the line breaking further.
I am new to Stack Overflow and am concerned this may be an 'extended discussion' which the FAQ says is beyond the scope of this site.
View 2 Replies
Feb 25, 2010
I often recieve FLV files for work and need to convert them to SWF. I know that flash imports FLA files but not FLV... I converted the FLV the F4V, opened it in flash, exported it as a SWF and it worked great... once.After that it rendered a white screen. How can I take an FLV file and properly convert it to a SWF suitable for web serving?
View 1 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
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
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
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
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
Nov 9, 2006
I need to know to create a calculator. By the way I'm using Flash 8 pro.
View 9 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
Aug 6, 2010
I have been creating animations for children, and recently finished an animated short. I am more of an artist than a techie, and I have not been able to find a clear cut answer as to what is the best way to convert flash to DVD. What file should be converted to achieve the best quality? SWF? MOV file? Is there a way to do it from flash? from Adobe Premier? I tried the AVI output and the quality was terrible.
Is a seperate converter needed? If so, are which give the best quality audio and visually? Here are some of the basic requirements for an animated short entry: DVDs must be compatible with standard set-top DVD players-- do not simply burn a quicktime or AVI file to a disc as data. It is highly preferred that you send us an NTSC, Region 1 or region free (Region 0) DVD when submitting to us, but we will also accept PAL and SECAM formats as well. If you are sending a DVD that has a region code other than 0 or 1, and/or a format other than NTSC, please mark this CLEARLY on the disc AND on the DVDcase.
View 2 Replies
Jun 28, 2011
I have buttons across the way that are going to listen if they are clicked and if they are clicked it performs a test that says "if i'm not on this page then go to it"I'm a script kiddy I'll admit so I copy paste and go with what works. My compiler errors are down drastically when publishing to AS3.
[code]...
View 14 Replies