|
-
its grand i sorted it out myself.i was actually right and foud out that if you change
}
function calculateAnswer(event:MouseEvent) {
if (theOperation == "+") {
theResult = Number(theResult) + Number(enteredNumber);
txt_result.text = theResult;
//*you just add another if statement//*
if (theOperation == "-") {
theResult = Number(theResult) - Number(enteredNumber);
txt_result.text = theResult;
}
//* it was really that simple//*
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|