ascript trouble

  • Started
  • Last post
  • 1 Response
  • Elfangio

    I am checking to see if there are more crazy guys like me working at a saturday night!!.....and, if you are help the poor guy here on this issue: This code works on my laptop but doesn't work on my Xeon. We both are in the same place, same hour, same Date(). Does anybody got into this already? Or is just me that knows shit about AS??

    thanks

    "var now:Date = new Date();

    var currentDay = now.getDay();
    var current
    var currentHour = now.getHours();
    var currentMin = now.getMinutes();

    trace("Dia:" + currentDay);
    trace("hora:" + now.getHours() + ":" + now.getMinutes());

    if (currentDay >= 6 && currentDay <= 7) { trace("FIM DE SEMANA"); } else { trace("DIA DE SEMANA"); } if (currentHour >= 10 && currentHour <= 20) { //trace("DAY TIME"); ImageLoad("daylight.swf", root); } else if(currentHour >= 20 && currentHour <= 8)
    {
    ImageLoad("night.swf", root);
    trace("NOITE");
    }
    else
    {
    trace("error");
    }"

    XEON
    trace("error");

    MacBook
    mageLoad("night.swf", root);
    trace("NOITE");

  • Elfangio0

    hey guys, forget about this...I think I got it!! sorry if I made you loos your time!! I go smoke another one...

    • what was IT????alicetheblue
    • probably had files in the wrong place on the Xeon, or something outside the code he postedPupsipu