Using ExternalInterface allows you to communicate between ActionScript and JavaScript.
Here are a few examples from the adobe site to get you started with ExternalInterface.
Here is the JavaScript to create and submit a form:
function createAndSubmitForm(url, formParams) {
var newForm = document.createElement("form");
newForm.setAttribute("action", url);
newForm.setAttribute("method", "POST");
for (var key in formParams) {
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");
hiddenField.setAttribute("name", key);
hiddenField.setAttribute("value", formParams[key]);
newForm.appendChild(hiddenField);
}
document.body.appendChild(newForm);
newForm.submit();
}
To call it, add this call to your ExternalInterface (ActionScript) and add your parameters:
createAndSubmitForm('thisurl.ext', {param1: 'value1', param2: 'value2'});
If you want to access an existing form control (a checkbox, for example, and check it), then do this:
var form = document.forms[0];
document.getElementById('checkboxId').checked = true;
form.submit();