all groups > flash actionscript > october 2005 >
You're in the

flash actionscript

group:

Applying Variables to input texts


Applying Variables to input texts eclipse_79
10/12/2005 11:08:25 PM
flash actionscript:
I'm currently making a contact form for my website. The only problem that I am
encountering at this moment is being able to successfully give text boxes
variables for the actionscript to read.. is there any tricks to loading
variables.. any extra features that I do not know about!!

If I have input text boxes: one for name, one for email, and one for the
message and i want my reset button to clear the information in the text boxes
and i give the reset button the following code:

on (release){
name="";
email="";
message="";
}

then how do I give the input text boxes variables that will allow this to
work... where do i input the variables and so on??

also does anyone know of how to go about creating a .php file?

thank youf or your time
Re: Applying Variables to input texts mandingo
10/12/2005 11:12:44 PM
textFields have a text property now and don't need to be accessed via the variable property...

on (release){
name.text = "";
email.text = "";
message.text = "";
}

Re: Applying Variables to input texts mandingo
10/13/2005 1:26:39 AM
Make sure your fields have two things... the correct path reference and the
InstanceNames.

on(release){
this.thisClip.personName.text = "";
this.thisClip.personEmail.text = ""
this.thisClip.personMessage.text = "";
}
AddThis Social Bookmark Button