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
var a:Number = new Number(field1.t ext);
var b:Number = new Number(field2.t ext);
var c:Number = new Number(field3.t ext);
operationFct = function () {
var res:Number = new Number();
res = (a * b) + c;
resultFld.text = res;
};
myButton.onRele ase = function() {
operationFct();
};
stop();
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
var a:Number = new Number(field1.t ext);
var b:Number = new Number(field2.t ext);
var c:Number = new Number(field3.t ext);
operationFct = function () {
var res:Number = new Number();
res = (a * b) + c;
resultFld.text = res;
};
myButton.onRele ase = function() {
operationFct();
};
stop();
Comment