View Single Post
  #3 (permalink)  
Old Feb 27th, 2008, 23:26
Germaris Germaris is offline
New Member
Join Date: Jan 2008
Location: Canada
Age: 67
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Multiplying variables...

Quote:
Originally Posted by marSoul View Post
Please attach your .fla file
Thanks for replying, very kind from you but no need to attach my .fla
Solution is to include the variables in the function...

Best regards,
Gerry


Code: Select all
operationFct = function () {
        var a:Number = Number(field1.text);
        var b:Number = Number(field2.text);
        var c:Number = Number(field3.text);
	var res:Number = new Number();
	res = (a * b) + c;
	resultFld.text = res;
};
myButton.onRelease = function() {
	operationFct();
};
stop();
Reply With Quote