Flash Textfield Help
- Started
- Last post
- 5 Responses
- ctrlRmB
I have a text field that says "TYPE YOUR TEXT HERE" and I've got an onSetFocue changing that to en empty string. It's an input text field... so i'd expect to be able to type in it once it goes blank... but for some reason it doesn't allow me to type in it.
Any ideas what i may be doing wrong?
Thanks
- ctrlRmB0
this is what i have...
greetingHolder.greetin_txt.onSet... = function(){
if(this.text == "TYPE YOUR CUSTOM TEXT HERE"){
greetingHolder.greetin_txt.autoS...
greetingHolder.greetin_txt.text = "";
greetingHolder.greetin_txt.type = "input";
}
}
- lucyGeneric0
Have you previously defined greetin_txt as an inout field?
If not you have a potential scope bug inside your onSetFocus method.
Try using the 'this' keyword when setting the parameters for the textField. (eg this.type = "input" )
- ifThenGo0
I got it working this way.
- ctrlRmB0
yep... it's always an input field...
Still not working... WTF
I click and it empties... but for some reason it's completely empty and i can't type in it.
- UndoUndo0
if(this.text == "TYPE YOUR CUSTOM TEXT HERE"){
this line should read
if(this.text = "TYPE YOUR CUSTOM TEXT HERE"){
=[assignment] instead of ==[equality]
maybe yr problem