Load external swf at certain Time

i need to be able to load a external swf from xml at a certain time off a users PC

im using the following XML

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<PLAYLIST>
<ADS><ADVERTS id ="1" url="messages.swf" load ="3000" unload ="6000" time ="9:05"  daytime="PM" weekday="Wednesday" month="February" day="4" year="2009"/></ADS>
</PLAYLIST>

and the following AS:

Stage.align = "TL";
Stage.scaleMode = "exactFit";


    myDate = new Date();
    // get Time stuff
    MyHour = String(myDate.getHours());
    if (MyHour == 0) {
        MyHour = "12";
    }
    //  make 12 hour clock  
    mnt = String(myDate.getMinutes());
    sec = String(myDate.getSeconds());
    if (MyHour>12) {
        hour = hour-12;
        AmPm = " PM";
    } else {
        AmPm = " AM";
    }
    // if single digit add zero
    if (mnt.length<2) {
        mnt = "0"+mnt;
    }
    if (sec.length<2) {
        sec = "0"+sec;
    }
    // get Date stuff  
    weekday = String(myDate.getDay());
    date = String(myDate.getDate());
    month = String(myDate.getMonth());
    if (weekday == 0) {
        weekdayText = "Sunday";
    } else if (weekday == 1) {
        weekdayText = "Monday";
    } else if (weekday == 2) {
        weekdayText = "Tuesday";
    } else if (weekday == 3) {
        weekdayText = "Wednesday";
    } else if (weekday == 4) {
        weekdayText = "Thursday";
    } else if (weekday == 5) {
        weekdayText = "Friday";
    } else if (weekday == 6) {
        weekdayText = "Saturday";
    }
    if (month == 0) {
        monthText = "January";
    } else if (month == 1) {
        monthText = "February";
    } else if (month == 2) {
        monthText = "March";
    } else if (month == 3) {
        monthText = "April";
    } else if (month == 4) {
        monthText = "May";
    } else if (month == 5) {
        monthText = "June";
    } else if (month == 6) {
        monthText = "July";
    } else if (month == 7) {
        monthText = "August";
    } else if (month == 8) {
        monthText = "September";
    } else if (month == 9) {
        monthText = "October";
    } else if (month == 10) {
        monthText = "November";
    } else if (month == 11) {
        monthText = "December";
    }
    yyyy = myDate.getFullYear();
    
trace(MyHour+":"+mnt+":"+sec+AmPm+" - "+weekdayText+" "+monthText+" "+date+", "+yyyy);

    
    var xmlDoc:XML = new XML();
    System.useCodepage = true;
    xmlDoc.ignoreWhite = true;
    xmlDoc.onLoad = function(ok:Boolean) {
        if (ok) {
            doAds(this);
        } else {
            trace("XML did not load");
        }
    };
    xmlDoc.load("splashads2.php");
    function doAds(xml:XML) {
        load = xml.firstChild.childNodes[0].childNodes[0].attributes.load;
        time = xml.firstChild.childNodes[0].childNodes[0].attributes.time;
        daytime = xml.firstChild.childNodes[0].childNodes[0].attributes.daytime;
        weekday = xml.firstChild.childNodes[0].childNodes[0].attributes.weekday;
        month = xml.firstChild.childNodes[0].childNodes[0].attributes.month;
        day = xml.firstChild.childNodes[0].childNodes[0].attributes.day;
        year = xml.firstChild.childNodes[0].childNodes[0].attributes.year;
        url = xml.firstChild.childNodes[0].childNodes[0].attributes.url;
        // now we got the time lets check tim against playlist
        var timeNow:String = hr+":"+mnt;
 // eventually here will check to be sure the weekday etc all above match from the xml
  
        if (time == timeNow) {  
            trace("True!");

            load = xml.firstChild.childNodes[0].childNodes[0].attributes.time;
            url = xml.firstChild.childNodes[0].childNodes[0].attributes.url;
            loadMovieNum(url, 2);

        } else {
            trace("False!");

            
        }
    }


I need it to check the time and if the time has passed then load the swf, and then unload after the 30 seconds

is it possible to set these up in 2 separate swf? one as the main the other as a child?
with the global time variable being passed to the other?

would i have to setinterval every second to load the xml and check the time?

thanks any help would be great!