On 4/13/05, Fernando Barros <[EMAIL PROTECTED]> wrote: > <mx:TextInput id="txtNome" keyDown="fAtualizaVar(event.ascii)" maxChars="150" > width="200" /> > And in my AS I have: > function fAtualizaVar(sNovoChar):Void > { > var sBotaoMsg:String; > if (isNaN(PropostaSelecionada.NCLIENTEID) == false) > sBotaoMsg = 'Update ' + txtNome.text + chr(sNovoChar); > else > sBotaoMsg = 'Insert ' + txtNome.text + chr(sNovoChar); >
Where is btnGravar defined? You could just use binding instead of doing this. <mx:Button id="btnGravar" label="{(isNaN(PropostaSelecionada.NCLIENTEID) ? 'Insert ' : 'Update ') + txtNome.text}" /> -- [EMAIL PROTECTED] http://manish.revise.org/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/