Hi, I've been using flash on and off and I feel fairly into it,
but I haven't done much action scripting yet. Well besides
the basics.. stop, play etc. I think the most advanced thing Salary Calculator - Yahoo! HotJobs:: Calculate the salary you should be getting based on industry and location. Get tips and advice on how to negotiate your ideal salary at Yahoo! HotJobs http://hotjobs.yahoo.com/salaryHOME |
I made was a login..
Anyways, what I'm trying to get at is to create a calculator.
It seems simple, but what I'm trying to do would look something like:
(and this is really hard to type since I don't know how i could do it)
I tried to write it out in here but it sounds confusing even to me, so
I made a small preview of what it would look like, just not sure how it
can work: sample (http://www.geocities.com/haruneru@ameritech.net/saple.swf) Cool math - Online Math and Financial Calculators:: Percentage of Increase Calculator (Level - kids & up) Quadratic Equation Calculator Blood Alcohol Level Calculator. Decimal to Binary Conversion Calculator http://www.coolmath.com/calculators/index.htmlHOME |
I have no idea how to manage numbers using flash.. :h:
Edit v 0.1
I know it looks bad, but I just made it for an example..
and I apologize in advance if there is a tutorial for anything
like this, but I'm not even sure what to search for. (I did look in actionscripting
and mathematical..)
I'm sorry I'm fairly new to AS. This is what I came up with yesterday evening:
on (press, keyPress "") {
cry = Number(cryprice)+287;
save = Number(cry)*Number(craftamount);
save1 = Number(craftamount)*Number(shopprice);
total = Number(save)+Number(save1);
son = Number(craftamount)*3;
cryneeded = Number(craftamount)*1;
totalshots = Number(craftamount)*156;
save3 = Number(bsp)*Number(totalshots);
savedtotal = Number(save3)-Number(total);
}
http://www.geocities.com/haruneru@ameritech.net/dss.html
(Updated)
Now the question would be, is using a drop-down menu to change preset variables ok?
I'm really so new at this I don't know what way is most efficient...
DSS is basically a grade "D", so if(when) i put in "C" grade, clicking "CSS" on the drop-down
will basically give the variables a different amount. I think I'll be able to do this, but I'm not sure, I wasn't able to find any tutorials anywhere.. so just kind of writing my own thing..
P.s. I'm really sorry for the confusing, it's not a calculator per say.. more like a special
calculator basing off variables the AS will move around according to user input><
(Sorry again, i'm so new..) :wt:
duh please lay out your AS. how would we know otherwise
try something like this, worked it out before:
calculator.onEnterFrame = function():Void {
calculator.total.text = Number(calculator.widthInput.text)*Number(calculat or.heightInput.text)+" feet";
calculator.price.text = "&"+Math.round(Number(calculator.widthInput.text)*Num ber(calculator.heightInput.text))*1.5;
};
var cry:Number = Number(cryprice)+287;
var save:Number =Number(cry)*Number(craftamount);
var save1:Number = Number(craftamount)*Number(shopprice);
var total:Number = Number(save)+Number(save1);
var son:Number = Number(craftamount)*3;
var cryneeded:Number = Number(craftamount)*1;
var totalshots:Number = Number(craftamount)*156;
var save3:Number = Number(bsp)*Number(totalshots);
var savedtotal:Number = Number(save3)-Number(total);
on (press, keyPress "") {
//input your functions here
//e.g.
totalText.text = Number(savedtotal) + Number(total)
}
can't really tell what your script wants, but this is the right way of scripting.
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market
|