flash and input text
- Started
- Last post
- 7 Responses
- golden_bouy
hiya all. My issue is this, I have a form in flash and one of the input boxes has text in in IE, "your name" now when the user clicks in this field to type their name, I want the text "your name" to dissapear, Ive seen it done on the origianl Praystation site, any ideas?
thanks
- unfittoprint0
mybox.text = "your name";
myListener = new Object();
myListener.onChanged = function() {
++count;
(count == 1) ? mybox.text="" : false ;
};
mybox.addListener(myListener);
- golden_bouy0
thanks, although Im having an issue with that, its causing an error, anyway you can send an fla?
- ozhanlion0
whoa unfitto is back.
how u doin m8?
- unfittoprint0
*old school*
TextField.prototype.setAutoBlank = function(value) {
if(value) {
this.onSetFocus = function() {this.text = "";}
}else{
this.onSetFocus = null;
}
}
- golden_bouy0
yo Unfit, I sent you an mail. thanks mate
- tdk0
Same problem.
- tdk0
myInputField.onSetFocus = function(){
this.text = "";
}Future reference. This works.