theunchosenone21
Technical User
i know how to use the get days feature, but i can't get it to work in unison with my project.
this is part of the whole script:
myday = mydate.getDay();
// gets days in numerical form with 0 =Sun, 1=mon, etc.
if (myday = 0) {
tellTarget ("saturday"
{
gotoAndPlay(1);
}
tellTarget ("sunday"
{
gotoAndPlay(2);
}
}
if (myday = 1) {
tellTarget ("sunday"
{
gotoAndPlay(1);
}
tellTarget ("monday"
{
gotoAndPlay(2);
}
}
.......etc, etc.
(for the gotoandplay strings, frame 1 can be said as being off and frame two is on
but instead of the script working so that on sunday, sunday would lite up and the others wont, andon monday, monday would lite up and the others wont, the script goes to the end and just always makes itseem that its saturday! even the myday string changes to show 6!
wats wrong! help!
this is part of the whole script:
myday = mydate.getDay();
// gets days in numerical form with 0 =Sun, 1=mon, etc.
if (myday = 0) {
tellTarget ("saturday"
gotoAndPlay(1);
}
tellTarget ("sunday"
gotoAndPlay(2);
}
}
if (myday = 1) {
tellTarget ("sunday"
gotoAndPlay(1);
}
tellTarget ("monday"
gotoAndPlay(2);
}
}
.......etc, etc.
(for the gotoandplay strings, frame 1 can be said as being off and frame two is on
but instead of the script working so that on sunday, sunday would lite up and the others wont, andon monday, monday would lite up and the others wont, the script goes to the end and just always makes itseem that its saturday! even the myday string changes to show 6!
wats wrong! help!