problemmer med AS genereret input felter
Hej eksperten,Jeg har lavet en login funktion hvor alle input felterne er sat ind via AS, men når jeg jeg sender indholdet af formen af sted bliver der ikke sent noget data fra input felterne selv om at de inde holder data, min kode kan ses her under :
_root.createTextField("myname",1,385,226,218,18);
myname.background = true;
myname.backgroundColor = 0xFFFFFF;
myname.type = "input";
myname.password = false;
_root.createTextField("mypass",2,385,264,218,18);
mylast.background = true;
mylast.backgroundColor = 0xFFFFFF;
mylast.type = "input";
mylast.password = false;
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.bold = false;
myTextFormat.size = 10;
myTextFormat.font = "verdana";
myTextFormat.color= 0xbace49;
myname.setNewTextFormat(myTextFormat);
mypass.setNewTextFormat(myTextFormat);
this.myname.onSetFocus = textBackcolor;
this.mypass.onSetFocus = textBackcolor;
this.myname.onKillFocus = textBackcolorOff;
this.mypass.onKillFocus = textBackcolorOff;
function textBackcolor(){
this.backgroundColor = 0xf8f6d6;
}
function textBackcolorOff(){
this.backgroundColor = 0xffffff;
}
function resetDownHandler(){
myname.text = "";
mypass.text = "";
}
function loginDownHandler(){
if(myname.text == null || mypass.text == null || myname.text == "" || mypass.text == "" ) {
_root.com.text = "Vigtigt !! Alle felter skal være udfyldt !!";
}
else{
var sendname:String = myname.text;
var sendpass:String = mypass.text;
getURL("login.asp", "", "Post");
}
}
