Your problem is probably that the
loader.load(request); is executed in the megazineSetup function. Meaning as soon as the SWF finished loading.
Put that line to the end of your sendMail function and it should work, i.e. like so:
function megazineSetup(megazine:IMegaZine):void {
request = new URLRequest(megazine.getAbsPath("email.php"));
request.method = URLRequestMethod.POST;
request.data = emailData;
}
// ...
function sendMail(e:MouseEvent){
if(validere()){
statusField.text = "Sender mail, vent venligst...";
emailData.navn = navnInput.text;
emailData.email = emailInput.text;
emailData.besked = beskedInput.text;
loader.load(request);
}else{
statusField.text = "Udfyld venligst alle felter."
}
}