This tutorial is exactly the same as the adding numbers tutorial.
Only replace the ‘+’ symbol with a ‘/‘symbol.
And the actionscript code on the ‘=’ symbol button would be:
on (release) {
_root.answer = Number(value1)/Number(value2);
}
Instead of
on (release) {
_root.answer = Number(value1)+Number(value2);
}
Take the adding numbers tutorial here
No comments:
Post a Comment