bladeMX
04-24-2003, 06:47 PM
I have two function that I currently set up for testing purposes. Now I'm trying to combine the two. What I'm trying to accomplish here is to have my hours convert to 24 hour format and then sent to the backend script ... all within a single function. What is the best way to handle this? Any suggestions are welcomed ... thanks!
Here is the first function:
function transferDate(){
whour1 = Number(whour);
if (wam_pm=="pm"){
if(whour1<=11){
whour1+=12;
}
}else{
if (whour1==12){
whour1 = 0;
}
}
trace(whour1);
return whour1;
}
Here is the second function:
function setWakeup(){
loginInfo = new XML("<doc><SendNotificationMessage></SendNotificationMessage></doc>");
loginInfo.sendAndLoad("myScript.pl", wakeXML);
trace(wakeXML);
gotoAndPlay("wait", 1);
waitMessage="Verifying your message, please hold ...";
}
Here is the first function:
function transferDate(){
whour1 = Number(whour);
if (wam_pm=="pm"){
if(whour1<=11){
whour1+=12;
}
}else{
if (whour1==12){
whour1 = 0;
}
}
trace(whour1);
return whour1;
}
Here is the second function:
function setWakeup(){
loginInfo = new XML("<doc><SendNotificationMessage></SendNotificationMessage></doc>");
loginInfo.sendAndLoad("myScript.pl", wakeXML);
trace(wakeXML);
gotoAndPlay("wait", 1);
waitMessage="Verifying your message, please hold ...";
}