Re: [flexcoders] tabnavigator gets messed up
Show some code sample. Sent from my iPhone On Jun 29, 2015, at 10:04 PM, t...@tamborine.to [flexcoders] flexcoders@yahoogroups.com wrote: Using FB4 with sdk4.0. My UI gets user details, then shows a tabbed interface. Can view any tabs, then get new user details. When the 2nd (and subsequent users) are chosen, the tabbed interface then is messed up with the details of the 3rd tab being displayed over the top of the details of the default (1st) tab. It's just a visual representation that looks wrong but it's quite messy looking. Any pointers on what might be causing this?
Re: [flexcoders] flex calculation problem
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] flexcoders@yahoogroups.com 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. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=center verticalAlign=top mx:Script ![CDATA[ private function calBalance(event:Event):void { var amt:Number=new Number; if (Number(amountPaid.text) Number(currentPaid.text) Number(manFees.text) Number(currentFees.text)){ amt = Number(currentBal.text) - ((Number(amountPaid.text) - Number(currentPaid.text)) + (Number(manFees.text) - Number(currentFees.text))) } balance.text=amt.toFixed(0); } ]] /mx:Script mx:Panel height=400 layout=vertical mx:HBox mx:Label text=Payment: width=113/ mx:TextInput id=amountPaid change=calBalance(event)/ mx:Label text=Management Fees:/ mx:TextInput id=manFees change=calBalance(event)/ /mx:HBox mx:HRule width=100%/ mx:HBox mx:Label text=Current Balance: width=126/ mx:Text text=515000 id=currentBal/ /mx:HBox mx:HBox mx:Label text=Amount Already Paid: width=126/ mx:Text text=50 id=currentPaid/ /mx:HBox mx:HBox mx:Label text=Fees Paid: width=126/ mx:Text text=0 id=currentFees/ /mx:HBox mx:HBox mx:Label text=updated Balance: width=126/ mx:Text id=balance/ /mx:HBox /mx:Panel /mx:Application