Imaginx
asked on
How can I clear field on focus, AS2
How can I clear a field on focus in action script 2 ??
TIA
experts.
TIA
experts.
ASKER
I have two fields already.
_root.qk_name & _root.qk_phone
Same fla as the previous question.
How/Where should I implement the code above.
qk_name should be variable character.
qk_phone is displayed "Phone: ###-###-####", but a user should only be able to input numbers & dashes
_root.qk_name & _root.qk_phone
Same fla as the previous question.
How/Where should I implement the code above.
qk_name should be variable character.
qk_phone is displayed "Phone: ###-###-####", but a user should only be able to input numbers & dashes
can you upload your fla?
if you have created movieclip instance you should able to use my functions:
_root.qk_name.tf.onSetFocu s = function() {
this.text = "";
};
_root.qk_name.onKillFocus = function() {
this.text = "###-###-####";
};
if you have created movieclip instance you should able to use my functions:
_root.qk_name.tf.onSetFocu
this.text = "";
};
_root.qk_name.onKillFocus = function() {
this.text = "###-###-####";
};
ASKER
dgofman,
I was out of town for a while, never got online to ee.
What happened to the other question you worked with me on?
Did the mods get you the points after all ??
If not, let me know so I can email someone & try to get it fixed.
-steve
here's the download link to the fla file
files.me.com/swaskey/cjow2 0
EE won't let me attach it, keeps saying:
"The extension of one or more files in the archive is not in the list of allowed extensions: bin/SymDepend.cache" ... It's just a normal fla file, 880kb ..
Thanks.
I was out of town for a while, never got online to ee.
What happened to the other question you worked with me on?
Did the mods get you the points after all ??
If not, let me know so I can email someone & try to get it fixed.
-steve
here's the download link to the fla file
files.me.com/swaskey/cjow2
EE won't let me attach it, keeps saying:
"The extension of one or more files in the archive is not in the list of allowed extensions: bin/SymDepend.cache" ... It's just a normal fla file, 880kb ..
Thanks.
Save your file as CS4 and you will able to upload to EE
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Dgofman,
This is what I get when I export the swf, the onfocus clears the name perfectly, but the number field only permits numbers 1,8,5,9 (which I think it may have already done for some reason) and once I type in anything - the Phone field just goes right back to Phone: ###-###-####
What's causes that?
This is what I get when I export the swf, the onfocus clears the name perfectly, but the number field only permits numbers 1,8,5,9 (which I think it may have already done for some reason) and once I type in anything - the Phone field just goes right back to Phone: ###-###-####
What's causes that?
Because I am validation only number by your mask ###-###-####
111-222-3333
444-555-6666
ect.
If number is not matched I reset to old text.
Look on my login in the first frame
111-222-3333
444-555-6666
ect.
If number is not matched I reset to old text.
Look on my login in the first frame
ASKER
I see, I understand the code as well - nice & simple .. Thanks !!
I'll post another question about only the numbers 1,5,8,9 showing up.
Here's the question ID: 27313172
Thanks again.
I'll post another question about only the numbers 1,5,8,9 showing up.
Here's the question ID: 27313172
Thanks again.
Open in new window