Re: [flexcoders] flex calculation problem

2015-04-16 Thread Alex Harui aha...@adobe.com [flexcoders]
It could be that unless both text inputs contain strings that parse into 
numbers you’ll get funky results like NaN for empty string.

From: "stinas...@yahoo.com<mailto:stinas...@yahoo.com> [flexcoders]" 
mailto:flexcoders@yahoogroups.com>>
Reply-To: "flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>" 
mailto:flexcoders@yahoogroups.com>>
Date: Thursday, April 16, 2015 at 1:01 AM
To: "flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>" 
mailto:flexcoders@yahoogroups.com>>
Subject: Re: [flexcoders] flex calculation problem



Hello, thanks for the response. i am already using a change listener on the 
text input but when i start typing in the first textinput, i don't get the 
desired result. its only when i type in both that the evnet kicks in.




Re: [flexcoders] flex calculation problem

2015-04-16 Thread stinas...@yahoo.com [flexcoders]
Hello, thanks for the response. i am already using a change listener on the 
text input but when i start typing in the first textinput, i don't get the 
desired result. its only when i type in both that the evnet kicks in.

Re: [flexcoders] flex calculation problem

2015-04-15 Thread Abhinay Dronamraju abhinay.dronamr...@yahoo.com [flexcoders]
I'm not sure if you are aware, but using a form is a better choice. To answer 
your question, use a change listener on the text input to achieve what you 
need. 

http://stackoverflow.com/questions/4361638/how-to-campture-the-text-change-event-of-a-text-control-to-call-a-function-in-fl


Sent from my iPhone

> On Apr 15, 2015, at 8:12 AM, stinas...@yahoo.com [flexcoders] 
>  wrote:
> 
> Hello Guys, i have a small problem. i have this form where i calculated 
> updated balance based on data already available and data from 2 text inputs. 
> the result is correct but i would like that when someone types in one 
> textinput the balance is computed and then further if someone inputs a figure 
> in the second text input. below is the code i got as of now. It needs 
> improvement.
> 
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> 
>   layout="vertical"
> 
>   horizontalAlign="center"
> 
>   verticalAlign="top">
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>
> layout="vertical">
> 
> 
> 
>   
> 
>
> width="113"/>
> 
>change="calBalance(event)"/>
> 
>   
> 
>   
> 
>   
> 
> 
> 
>   
> 
>   
> 
>
> width="126"/>
> 
>
>id="currentBal"/>
> 
>   
> 
>   
> 
>
> width="126"/>
> 
>
>id="currentPaid"/>
> 
>   
> 
>   
> 
>
> width="126"/>
> 
>
>id="currentFees"/>
> 
>   
> 
>   
> 
>
> width="126"/>
> 
>   
> 
>   
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


[flexcoders] flex calculation problem

2015-04-15 Thread stinas...@yahoo.com [flexcoders]
Hello Guys, i have a small problem. i have this form where i calculated updated 
balance based on data already available and data from 2 text inputs. the result 
is correct but i would like that when someone types in one textinput the 
balance is computed and then further if someone inputs a figure in the second 
text input. below is the code i got as of now. It needs improvement.
 

 
 http://www.adobe.com/2006/mxml";
 layout="vertical"
 horizontalAlign="center"
 verticalAlign="top">