Flash AS2 HELP!
- Started
- Last post
- 9 Responses
- Mishga
Good people of QBN! * Dictator pose
i have a input Textfield with "Type your name":
AS code
*****************
textbox.onSetFocus =function () {
this.text = "";
};
*************
End codeWorking nice...but (there's always a butt)
if i don't fill the textfield and click somewhere else i would like to see the "Type your name" back on the textfield...
Any ideia?
Thanks a lot!
Cheers you all...=)
- mimeartist0
onKillFocus
- Mishga0
WWoww!!
THANKS A LOT Mimeartist!!!
Cheers Mate!
Ps: i will give your name to one of my kids someday...=)
- mimeartist0
what? James?
- Mishga0
humm...i thought your real name was Mimeartist...:S
But James is ok...i'll think about it..
Thanks a lot for the tip!I 've figured another problem:
if i type some text, it will put "Type your name" back...:S
- stupidresponse0
only replace the text if the textfield is empty
- Mishga0
i have:
textbox.onKillFocus = function() {
if (this.text="") {
this.text = "Type your name";
}
};**************
End codeNot working...
- stupidresponse0
==
- seanhaus0
You need ==
- Mishga0
WWWWOOOWWWWWOWW!!! Working!!=)
Thanks Mimeartist, Stupidresponse and Seanhaus!!
Cheers You ALL!=)Damn!! Now i have to make 3 babies...
* Girlfriend says "HELL NO!" and runs...