Hmm, what's wrong with these? Addition is the same way, and works fine, but none of these work x_X (the reason for the temp.display is to make the display flash, but still save the date for the block)
PHP Code:
function calc_subtract.onAction()
{
temp.display=calc_num.text;
calc_num.text="";
sleep .05;
calc_num.text=temp.display;
sleep .05;
calc_num.text="";
this.total-=temp.display;
this.calc_mode=2;
}
function calc_multiply.onAction()
{
temp.display=calc_num.text;
calc_num.text="";
sleep .05;
calc_num.text=temp.display;
sleep .05;
calc_num.text="";
this.total*=temp.display;
this.calc_mode=3;
}
function calc_divide.onAction()
{
temp.display=calc_num.text;
calc_num.text="";
sleep .05;
calc_num.text=temp.display;
sleep .05;
calc_num.text="";
this.total/=temp.display;
this.calc_mode=4;
}