I am creating a flash calculator and used the actionscript from the sample
included in the program.
What i would like to know is where does this variable come from : operand1.
I have gone through this function and can not understand its purpose.
Here is the function in which the variable is in.
function DoOperator(newOper)
{
// Perform an operation
if (operator == "+")
{
display = Number(operand1)+Number(display);
}
if (operator == "-")
{
display = operand1-display;
}
if (operator == "*")
{
display = operand1*display;
}
if (operator == "/")
{
display = operand1/display;
}
operator = "=";
clear = true;
decimal = false;
if (newOper != null)
{
operator = newOper;
operand1 = display;
}
}


Any and all help would be appreciated.