Sunt incepatoare in acest domeniu, imi cer scuze daca nu ma exprim corect. Asadar am creat un site in flash utilizand ActionScript 3.0 la pagina de contact am adaugat 3 casute nume, email si mesaj, cu urmatoarea sintaxa:
Cod: Selectaţi tot
import flash.net.URLVariables;
import flash.net.URLRequest;
InteractiveObject(theName.getChildAt(1)).tabIndex = 1;
InteractiveObject(theEmail.getChildAt(1)).tabIndex = 2;
InteractiveObject(theMessage.getChildAt(1)).tabIndex = 3;
/* Mouse Click Event
Clicking on the specified symbol instance executes a function in which you can add your own custom code.
Instructions:
1. Add your custom code on a new line after the line that says "// Start your custom code" below.
The code will execute when the symbol instance is clicked.
*/
Cod: Selectaţi tot
send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_7);
function fl_MouseClickHandler_7(event:MouseEvent):void
{
if (theName.text == "" || theEmail.text == "" || theMessage.text == "")
{
theFeedback.text = "Please fill out all fields.";
}
else
{
// create a variable container
var allVars:URLVariables = new URLVariables();
allVars.name = theName.text;
allVars.email = theEmail.text;
allVars.message = theMessage.text;
//Send info to a url
var mailAddress:URLRequest = new URLRequest("www.siteulmeu.com/gdform.php");
mailAddress.data = allVars;
mailAddress.method = URLRequestMethod.POST;
sendToURL(mailAddress);
theFeedback.text = "Thank you!";
theName.text = "";
theEmail.text = "";
theMessage.text = "";
}
}
Ce nu stiu este fisierul gdform.php de unde l-as putea downloada sau cum l-as putea scrie deoarece nu am hosting de la godaddy.
Va multumesc,
Anca