Hi guys, i have troubles. i can change the alpha opacity from images but onl by hour, when i try to add minutes doesn't works correctly.

I have differents images, they must show at differents hours and minutes...like >= 16 :30 to <18 - hs

heres the code:

onClipEvent (enterFrame) {
myDate = new Date();
_root.Hour = myDate.getHours();
_root.Minutes= myDate.getMinutes();
switch( myDate ){
break;
default: trace( myDate );}
}


inside the object/images:

onClipEvent (enterFrame) {
if ((_root.Hour >= 16 ) && (_root.Hour <18)) {
setProperty(this, _alpha, 100);
}
if ((_root.minutes >= 30 )) {
setProperty(this, _alpha, 100);
}
else {
setProperty(this, _alpha, 0);
}
}


hope you can help me with this one, or show me another way to get it. Before i get crazy :P

Thnks for advance.