Hm surprised no responses yet - Here is another method I'm trying - for some reason, regardless of the time - it always thinks it's "game time"
help!Code:function getGameTime():void { var my_date:Date = new Date(); var currentHour:Number = my_date.getHours() + my_date.getMinutes(); if (currentHour < 14) { setTime(); trace("game is later"); } else if (currentHour > 14) { changeTime(); trace("game time!"); } } function setTime():void{ matchup_mc.gotoAndStop(1); trace("game is later"); } function changeTime():void{ matchup_mc.gotoAndStop(15); trace("game time!"); }




Reply With Quote