# Multiplication of variables

**URL:** <https://forum.kirupa.com/t/multiplication-of-variables/253168>\
**Category:** Uncategorized\
**Created:** [February 27, 2008, 9:11pm UTC](https://forum.kirupa.com/t/multiplication-of-variables/253168 "2008-02-27T21:11:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Germaris](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Germaris](https://forum.kirupa.com/u/Germaris)\
**Post date:** [February 27, 2008, 9:11pm UTC](https://forum.kirupa.com/t/multiplication-of-variables/253168/1 "2008-02-27T21:11:05Z")

</div>

Hi there!

Here is the whole script of a test document which doesn’t work…  
Excuse me but I never used multiplication of variables and I confess how shameful I feel.  
I absolutely don’t understand the explanations the Flash Help contains…

Document contains three Input Fields, a Dynamic Field and a Button.  
Clicking the Button returns NaN !!!

I thank you in advance for any help.

Best regards from Old Gerry

```auto
var a:Number = new Number(field1.text);
var b:Number = new Number(field2.text);
var c:Number = new Number(field3.text);
operationFct = function () {
	var res:Number = new Number();
	res = (a * b) + c;
	resultFld.text = res;
};
myButton.onRelease = function() {
	operationFct();
};
stop();

```
