Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
nardove #1
CLEAR INPUT TEXT problem
hi, first i'll excuse for my english
the problem is that i want to create a form when the user click on a inputtext
is clear its content and let the user write the information
i got one symbol a Movie Clip that has a input text inside
i wrote this code:
this is for the movie clip "mc_nombre"
onClipEvent (load) {
this.etiqueta.variable = "nombre";
nombre = "nombre";
}
onClipEvent (mouseDown) {
tellTarget (this) {
nombre = "";
}
}
and this one for "mc_apellido" that is a copy on the same symbol:
onClipEvent (load) {
this.etiqueta.variable = "apellido";
apellido = "apellido";
}
onClipEvent (mouseMove) {
tellTarget (this) {
apellido = "";
}
}
the problem here is that when i click in one of them, both clear its texts, i
mean, that both input gets the instruccion to clear the variables to ""
thanks for the help, and i hope that you can understand this
if you know another way to do this please tell me
nardove Guest
-
Polish characters in text input (linux problem only)
I've got some problems with TextInput. When i want to type polish characters (RIGHT ALT + combination: A,C,E,L,N,O,S,Z and X) - I've got no results.... -
Compare input text with imported XML data problem
I am making a simple quiz with the Q and As held in an external XML file. I load the data and check it no problem and put the answer to the randomly... -
Clear an input field when user clicks in it
Im trying to clear a value of a cfinput when the user clicks in it. i used to do this on html. <input name="" onClick="(this.value=' ')"> can... -
problem with reset/clear in <input type="file" >
how to clear values in input file object. In My Form i need to upload a file and enter some values in other text fields. i have "Submit" and... -
text is not clear
Hello Annvee, It depends on how large the font might be, more often, small fonts will appear blurry on your screen. Here are some links to help... -
Jack. #2
Re: CLEAR INPUT TEXT problem
add a hitTest to the clip action,
onClipEvent (mouseDown) {
if(this.hitTest(_root._xmouse,_root._ymouse,true)) {
//tellTarget (this) {// no need for this line- plus tellTarget is deprecated
code
nombre = "";
//}
}
}
Jack. Guest
-
charleuts #3
Re: CLEAR INPUT TEXT problem
Have you tried using the onSetFocus event? Maybe this will help.
myInputTextBox.onSetFocus = function() {clearTag(_root.myInputTextBox);
Regards,
Chuck
charleuts Guest
-
charleuts #4
Re: CLEAR INPUT TEXT problem
your functions (defined before in script) might look something like this:
function clearTag(o) {
if (o.text.charAt(0)=="<" and o.text.charAt(o.text.length-1)==">") {
o.setTextFormat(enteredFormat);
o.text="";
}
}
function addTag(o,s) {
if (o.text=="") {
o.setTextFormat(emptyFormat);
o.text=s;
}
}
charleuts Guest
-
Laiverd.COM #5
Re: CLEAR INPUT TEXT problem
[url]http://home.hccnet.nl/john.mulder/flash/clear_on_focus.zip[/url]
--
----------------------------------------------------------------------------
-----------
RESOURCES
[url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
----------------------------------------------------------------------------
-----------
TUTORIALS at
[url]www.laiverd.com[/url]
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------
Laiverd.COM Guest
-



Reply With Quote

