Hi guys…
So i want a simpel textfield where a user write their name and hit the enter key. After hit of the enterkey, the textfield removes and another one is set, with the word Hi + the name.
Please help me figure this out.
My code:
var textBox:TextField= createTextField("yourname", this.getNextHighestDepth(), 200,200,150,20);
var messAge:TextField= createTextField("message", this.getNextHighestDepth(), 200,200,150,20);
textBox.border=true;
textBox.type= "input";
textBox.text="PUT YOUR NAME HERE"
textBox.onSetFocus=function(){
this.text= "";
}
if(textBox.text==(Key.isDown(Key.SPACE)){
}
I know my if sentece is not in a function, and it will be outputtet incorrect in the output panel. But it´s just to give a feeling on what i was triyng to do. please help…
Regards Hamid