Converting HTML Forms to Actionscript

You are goona have to make it do this yourself (we dont do work for you) using the components provided in flash and a little bit of actionscript. So make your form and give each component a unique instance name. Once you have that done make yourself a button. The actions for the button:


on(release) {
    loader = new LoadVars(); //create new loadVars object
    loader.variable = input_box.text; //set loadvars variable for sending VIA post method
    //do the above line for every object in your form replacing variable with the name of the object in the HTML form, and replacing input_box with the instance name of the object
    loader.send("page_that_form_was_going_to_be_submitted_to.ext", "POST");
}

That will do the same thing as the HTML form, however it will not display the page the info was sent to. If you would like to display a confirmation, or something like that, design the send to page so it returns a variable confirming the data, and use sendAndLoad instead of send. and add this underneath:


loader.onLoad = function(success) {
    if(success) {
        //confirmation actions
    } else {
        //error actions
    }
}