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, [email protected] [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"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>