walter2161 Posted November 8, 2011 Report Share Posted November 8, 2011 bom dia a todos.eu tenho este actionscript:function onKeyDown(){ if(Key.isDown(Key.ENTER)){ this.output_txt.text += ""+digite+" disse: "; this.output_txt.text += input_txt.text + newline this.output_txt.text += ""+ele+" disse: " this.findAnswer(this.input_txt.text); this.output_txt.text += ""+ newline this.output_txt.scroll = this.output_txt.maxscroll; this.input_txt.text = ""; Selection.setFocus(this.input_txt); } }e preciso que quando o texto transforme em letras maiúsculas antes de chamar a função em XML. Quote Link to comment Share on other sites More sharing options...
0 Anti-puff Posted November 15, 2011 Report Share Posted November 15, 2011 Você precisa apenas o usar o comando nas variaveis string: digite.toUpperCase(); Quote Link to comment Share on other sites More sharing options...
0 walter2161 Posted November 17, 2011 Author Report Share Posted November 17, 2011 Então companheiro!Ficaria assim?function onKeyDown(){if(Key.isDown(Key.ENTER)){this.output_txt.text += ""+digite+" disse: ";this.output_txt.text += input_txt.text + newlinethis.output_txt.text += ""+ele+" disse: "this.findAnswer(this.input_txt.text);this.output_txt.text += ""+ newlinethis.output_txt.scroll = this.output_txt.maxscroll;this.input_txt.text = "";digite.toUpperCase();Selection.setFocus(this.input_txt);não esta funcionando!!!Eu sou muito chuco em programação.}} Quote Link to comment Share on other sites More sharing options...
0 Anti-puff Posted November 18, 2011 Report Share Posted November 18, 2011 Tente assim:function onKeyDown(){ if(Key.isDown(Key.ENTER)){ this.output_txt.text += ""+digite.toUpperCase()+" disse: "; this.output_txt.text += input_txt.text + newline this.output_txt.text += ""+ele+" disse: " this.findAnswer(this.input_txt.text); this.output_txt.text += ""+ newline this.output_txt.scroll = this.output_txt.maxscroll; this.input_txt.text = ""; Selection.setFocus(this.input_txt); } } Quote Link to comment Share on other sites More sharing options...
Question
walter2161
bom dia a todos.
eu tenho este actionscript:
function onKeyDown(){
if(Key.isDown(Key.ENTER)){
this.output_txt.text += ""+digite+" disse: ";
this.output_txt.text += input_txt.text + newline
this.output_txt.text += ""+ele+" disse: "
this.findAnswer(this.input_txt.text);
this.output_txt.text += ""+ newline
this.output_txt.scroll = this.output_txt.maxscroll;
this.input_txt.text = "";
Selection.setFocus(this.input_txt);
}
}
e preciso que quando o texto transforme em letras maiúsculas antes de chamar a função em XML.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.