ActionScript 2.0 :: Create A Calculator Which Adds Several Variables
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
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
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
Jul 19, 2007
how to create a flash calculator using arrays?
View 3 Replies
Oct 21, 2010
I'm looking to create a simple quiz which adds up points depending on the answer selected.where to read about creating something like this?
View 10 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 10, 2009
I am trying to create a slider that when changed either adds icons or subtracts icons.Here is what I got:
Code:
package
{
import flash.filters.*;
import flash.ui.*;
[code].....
View 5 Replies
Apr 9, 2011
i am trying to do a loop to create several variables to aasign each one of those variables one number.when i write
[Code]...
View 4 Replies
Feb 24, 2009
I am trying to create dynamic variables. Lets say: I read a file where I have: building, restaurant and hotel.
[Code]...
View 1 Replies
Aug 17, 2009
I need a code that adds 10 to a dynamic text box?
View 8 Replies
Oct 19, 2009
I have this code, which should work fine, but it doesn't.
Unit1_Mobs_Destroyed += 1;
Text="Unit 1 destroyed "+Unit1_Mobs_Destroyed+" Mobs!" It should set Unit1_Mobs_Destroyed to current value + 1 If Unit1_Mobs_Destroyed is 5 at the start, it should be this: Unit 1 destroyed 6 Mobs But that doesn't happen instead I get this: Unit 1 destroyed 5 1 Mobs
View 2 Replies
Jan 4, 2011
i have successfully created a loop that adds 100 movieclips to the screen but my problem is that they all appear on the screen at the same time. what is the best way to make the movieclips appear within a few seconds of each other?
ActionScript Code:
for (var i:Number=1; i<=100; i++) {
var circle:MovieClip = new ball();
addChild(circle);
circle.x=Math.random()*stage.stageHeight;
circle.y=Math.random()*stage.stageWidth;
}
View 1 Replies
Jun 23, 2007
I'm having a problem with extra lines being added to my text anytime the stylesheet is applied??
Here's the actionscript:
this.createTextField("bodytxt", 0, 50, 30, 430, 200);
bodytxt.html = true;
bodytxt.border = true;
[Code].....
View 3 Replies
May 6, 2008
I have two buttons one that adds 2 and one that adds 3.
Code:
score.text = 0;
add2.onPress = function():Void {
score.text = Number(score.text) + 2;[code]....
I want to gotoAndPlay to another frame with the value adds to 5. Say if I press the add2 button and the add3 button, I want to go to another frame.I tried making score.text a variable and it didn't work.
If (score.text =5){
gotoAndPlay(1);
}
View 2 Replies
Nov 29, 2009
Due to my need to tween TextFields, Flash managed to botch up simple scale Tweening.Right now, the font is embedded, and it's doubling the total SWF size.I want to be able to tween the size of the TextFields, without that "jerky" motion. Some way to convert it to vector graphics would likely be the best option.I tried rendering as a bitmap, but it isn't getting the desired result, and the hit areas of the TextFields seem way off. Also, it tends to blur quite a bit, even though the scale is only 1.2.
View 12 Replies
Apr 7, 2011
i am working on this code
[as]portfolio_btn.addEventListener(MouseEvent.CLICK, portfolio);
home_btn.addEventListener(MouseEvent.CLICK, home);
var loader:Loader=new Loader();
loader.load(new URLRequest("portfolio.swf"));
[code]....
so i can click on a button and after 2 seconds my swf loads fine. but then when i click on the other button to unload, remove it. It plays again...how can i remove it so it doesnt keep adding itself.
View 2 Replies
Jan 14, 2010
i can use flash a bit. can any one point me in the right direction of making a add like this [URL] the 3 picture one
View 1 Replies
Oct 18, 2010
I'm rather belatedly getting to grips with the new tweening system introduced in CS4. To be quite honest it's been a nightmare, but I'm starting to see its good points now.One thing that still drives me crazy is when you create a new tween and Flash creates a new layer for you and puts the tween into it. Why? And how do I stop it? Over the course of a 10 min animation with a lot of tweens I could end up with hundreds of layers
View 2 Replies
Feb 5, 2011
I'm trying to create a button that, when first clicked, will add a MC to the stage. Then, on the second and subsequent clicks will remove the existing MC and replace it with a new one. The code I'm using is:
stop();
draw1.buttonMode = true;
draw1.useHandCursor = true;
[Code]....
Is there a better way to handle this than what I have above?
View 3 Replies
May 17, 2011
I have two classes, both in the same package, one of which parses xml and adds a value to the second via an internal set method. This initially works fine but as soon as add a public get method to the second class I get an error (1059: Property is read-only).
The problem goes away if I make both methods public or internal but in this situation I would like to have one of each. Is this possible? I thought I had done this in the past without any problems but maybe not.
View 1 Replies
Dec 18, 2009
I am trying to track the exit clicks of the users in the adds in my page.
Can I somehow capture with Javascript the click event of a user in a external Flash add I have inserted in my page?
I have been searching and trying by myself, but it seems like the flash object inside of my page is a black box, where I could not access anyway.
View 1 Replies
Jan 13, 2010
I'm using to bitmapFill to add tile grid to a movieclip which contains an image and it's adding a white fill in the transparency parts of the movieclip even if I set the transparency true, here's the code snippet I'm using.
ActionScript Code:
var mySprite:Sprite = new Sprite();
var myBitmap:BitmapData = new BitmapData(2, 2, true);[code]......
View 1 Replies
Jun 6, 2003
How do I create an fla that rotates banners made in flash (external flash animations) upon refresh on the browser?
View 5 Replies
Jun 8, 2009
I have a class that adds to the main stage fine, but not inside an MC
var SliderTestClass = new SliderTestClass;
mContent01.addChild(issSlider); //trace says undefined
addChild(issSlider);//trace says [object SliderTestClass]
Why would it refused to be added to mContent01 which is a visible MC on the stage?
View 8 Replies