Here are some questions:[list=1]
[]How would I set a certain dynamic text boxes color of the outer border and the inner background? I’ve seen many sites do this. I don’t like making a rectangle for it seperately.
[]How would I make it so that, like for an input textbox, before you type anything in, it shows: Please Input a Name, and after you click in the input text box, before you start typing, the textbox clears the text.[/list]
second:
make your txtfield a movieclip (“tekst”)
txtfield variable =input
just type what you want in your txtfield and use this code: [AS]tekst.txt.backgroundColor = 0xFFFF00;
tekst.txt.borderColor = 0xFF0000;
tekst.onPress = function(){
tekst.input = “”;
}[/AS]
Nah, it doesn’t work. I put the input textbox into a movie clip. It’s instance name is tekst. It’s variable is input. And the actionscript on the first keyframe inside the MC is: [AS]tekst.text = “Please Enter Name”;
tekst.backgroundColor = 0x212121;
tekst.borderColor = 0x000000;
tekst.onPress = function() {
tekst.input = “”;
};
No man, you code doesn’t work. To make it have “Please Enter Your Name”, I took off the tekst part of the code. To make it have the colored textbox, I took off the .txt part of the code. And the last part definetly doesn’t work. Is onPress a function that’ll work for input textboxes?