PDA

View Full Version : How to define a var to a component


cmxsevenfoldxmc
06-19-2008, 08:04 AM
This must be the simplest thing to do, but I just can't seem to figure it out.

I'm trying to give a combobox and a checkbox a var name to be able to send it to a .php page, but I can't quite put my finger on it.

How can I do this?

gnomeontherun
06-19-2008, 05:36 PM
Here is a tutorial about flash forms, otherwise there are more online if you search.

http://www.devshed.com/c/a/Flash/Building-Web-Forms-In-Flash/

You probably click on the combobox/checkbbox and add a variable name to the Var_____ box in the properties.

cmxsevenfoldxmc
06-19-2008, 06:43 PM
Excellent!

Thanks a lot, Jeremy! Finally a tutorial that covers all form elements and not just input text fields.

This is what I was looking for to determine how to pass data to my php page:
function doSubmit()
{
userData = new LoadVars();
userData.name = name;
userData.species = species;
userData.speciesType = speciesType.getValue();
userData.residence = residence.getValue();
userData.send("register.php", "", "post");
}

I couldn't simply set a Var name for the combo and checkboxes from the properties panel, that's why I needed this.

I'll try it out as soon as I get home tonight.