Kod: Zaznacz cały
on (click) {
// these statements simply read the data from the input fields
// and print them to the output window for debugging
trace(this._parent.email.text);
trace(this._parent.lata.value);
trace(this._parent.mecz.text);
trace(this._parent.zawodnik.selectedItem.label);
trace(this._parent.mezczyzna.selected);
trace(this._parent.kobieta.selected);
// save the return email address
returnEmail = this._parent.email.text;
// create an empty string variable to store the data
urlData = "";
// assemble the data from the fields into the new variable
urlData += "Email: "+this._parent.email.text+newline+" ";
urlData += "Kibicowanie: "+this._parent.lata.value+newline+" ";
urlData += "Wybór meczu: "+this._parent.mecz.text+newline+" ";
urlData += "Wybór zawodnika: "+this._parent.zawodnik.selectedItem.label+newline+" ";
urlData += "Mezczyzna: "+this._parent.mezczyzna.selected+newline+" ";
urlData += "Kobieta: "+this._parent.kobieta.selected+newline+" ";
// print url data to output window for debugging
trace(urlData);
// send email using user input data
getURL("mailto:[email protected]?temat=Kwestionariusz osobowy="+urlData);
}
