View Full Version : Easy Input Textbox Question
holtzy
02-12-2003, 01:15 AM
When I first open my movie, I have two input boxes. They automatically have the path as text in them. Is there a property that will have them come up with no text in them? Thanks!
timeliner
02-12-2003, 02:09 AM
Do you mean input text boxes? If so they don't have a path to display. Make sure you have selected Input Text in the Properties
panel.
holtzy
02-12-2003, 04:13 PM
They are input text boxes, but when I load the html page it has, "_root.txtUserID" already in the input text box. Did I screw something up? or have a setting on the input text box that is doing this?
timeliner
02-12-2003, 08:15 PM
The only thing I can think of is that you are previewing the swf in Flash and not through the browser. Try eliminating the instance names of the text boxes. I know that works for dynamic text boxes :confused:
level32
02-12-2003, 09:16 PM
Your fields should have a variable name not an instance name.
Example:
If the field has a variable name of "text" you can put whatever you want in it. Like this:
_root.text = "Blah Blah Blah"
If you don't want anything in that field, you can put this on the frame it shows up on:
_root.text = ""
That tells text field named "text" to be empty.
Hope that helped.
binkyboo
02-12-2003, 09:41 PM
Just so you don't get confused your input text box can have an instance name and you can assign it to have no text like this:
_root.spongeBob.text = ""
The instance name of the textfield is spongeBob.
You can also have the text field with text populating the box and when the user clicks on the input text box the text disappears.
onClipEvent (load) {
function emptyField() {
if (Selection.getFocus() == "_level0.Guestbook.EnterData.name") {
_level0.Guestbook.EnterData.name = "";
}
}
}
onClipEvent (mouseUp) {
emptyField();
}
holtzy
02-12-2003, 10:37 PM
Sweet. I finally understand, and it works. Thanks everyone!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.