Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
Simple Runtime Multiplication Calculator  


Download .fla

Actionscript

on(release){
output = Number(inputa) * Number(inputb);
}



Note: To calculate the result type vaules into the yellow text boxes and click on the "Enter" button.


The actionscript code it put in the button instance. The "on (relaease)" commands the following code to be execusted when a button reaches its "release" state.


on(release){

This statement sets the value of the dynamic text field "output" equal to the value entered in to the text boxe "inputa" multiplied by "inputb".

output = Number(inputa) + Number(inputb);

Number() evaluates and returns the numerical value of any input in the text field making text entries null entries.



© 2008 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us