JJ15
Member
يك صفحه ي جديد باز كنيد
action for frame =======>
اكشن براي اقربه ي بزرگ : اسم اقربه : ore
اكشن براي اقريه كوچك : اسم : minuti
اكشن براي ثانيه : اسم : sec
اكشن براي ساعت ديجيتالي :
make a Dynamic Text
var = digit
اكشن براي تاريخ ديجيتالي :
make two little Dynamic Text
var for first one = datario
var for second dynamic text = abc
ماه و سال :
make a group of two dynamic text
make one . big
and make another one Little
and the name for the big one = mase
and the name of the another dynamic text = anno
و اكشن براي فريم 1 در گروپ :
موفق باشيد
action for frame =======>
کد:
tempo=new Date();
abc = tempo.getDate();
anno = tempo.getFullYear();
if (tempo.getDate()<10) {
abc = "0"+abc;
}
_root.sec.sec = tempo.getSeconds();
_root.minuti.min = tempo.getMinutes();
_root.ore.ora = tempo.getHours();
if (tempo.getSeconds()<10) {
_root.sec.sec = "0"+tempo.getSeconds();
}
if (tempo.getMinutes()<10) {
_root.minuti.min = "0"+tempo.getMinutes();
}
if (tempo.getHours()<10) {
_root.ore.ora = "0"+tempo.getHours();
}
_root.millisec.der = tempo.getMilliseconds();
if (tempo.getDay()==0 ) {
datario = "s";
} else if (tempo.getDay()==1) {
datario = "M";
} else if (tempo.getDay()==2) {
datario = "T";
} else if (tempo.getDay()==3) {
datario = "W";
} else if (tempo.getDay()==4) {
datario = "T";
} else if (tempo.getDay()==5) {
datario = "F";
} else if (tempo.getDay()==6) {
datario = "s";
}
digit = _root.ore.ora+":"+_root.minuti.min+":"+_root.sec.sec;
mese = tempo.getMonth()+1;
if (mese==11) {
mese = "november";
} else if (mese==12) {
mese = "december";
} else if (mese==01) {
mese = "january";
} else if (mese==02) {
mese = "February";
} else if (mese==03) {
mese = "March";
} else if (mese==04) {
mese = "April";
} else if (mese==05) {
mese = "may";
} else if (mese==06) {
mese = "june";
} else if (mese==07) {
mese = "july";
} else if (mese==8) {
mese = "Agost";
} else if (mese==9) {
mese = "September";
} else if (mese==10) {
mese = "october";
}
اكشن براي اقربه ي بزرگ : اسم اقربه : ore
کد:
onClipEvent (enterFrame) {
setProperty("_root.ore", _rotation, ora*30+_root.minuti.min*0.5);
}
اكشن براي اقريه كوچك : اسم : minuti
کد:
onClipEvent (enterFrame) {
setProperty("_root.minuti", _rotation, min*6+_root.sec.sec*0.1);
}
اكشن براي ثانيه : اسم : sec
کد:
onClipEvent (enterFrame) {
setProperty("_root.sec", _rotation, sec*6);
}
اكشن براي ساعت ديجيتالي :
make a Dynamic Text
var = digit
اكشن براي تاريخ ديجيتالي :
make two little Dynamic Text
var for first one = datario
var for second dynamic text = abc
ماه و سال :
make a group of two dynamic text
make one . big
and make another one Little
and the name for the big one = mase
and the name of the another dynamic text = anno
و اكشن براي فريم 1 در گروپ :
کد:
tempo=new Date();
abc = tempo.getDate();
anno = tempo.getFullYear();
if (tempo.getDate()<10) {
abc = "0"+abc;
}
_root.sec.sec = tempo.getSeconds();
_root.minuti.min = tempo.getMinutes();
_root.ore.ora = tempo.getHours();
if (tempo.getSeconds()<10) {
_root.sec.sec = "0"+tempo.getSeconds();
}
if (tempo.getMinutes()<10) {
_root.minuti.min = "0"+tempo.getMinutes();
}
if (tempo.getHours()<10) {
_root.ore.ora = "0"+tempo.getHours();
}
_root.millisec.der = tempo.getMilliseconds();
if (tempo.getDay()==0 ) {
datario = "s";
} else if (tempo.getDay()==1) {
datario = "M";
} else if (tempo.getDay()==2) {
datario = "T";
} else if (tempo.getDay()==3) {
datario = "W";
} else if (tempo.getDay()==4) {
datario = "T";
} else if (tempo.getDay()==5) {
datario = "F";
} else if (tempo.getDay()==6) {
datario = "s";
}
digit = _root.ore.ora+":"+_root.minuti.min+":"+_root.sec.sec;
mese = tempo.getMonth()+1;
if (mese==11) {
mese = "november";
} else if (mese==12) {
mese = "december";
} else if (mese==01) {
mese = "january";
} else if (mese==02) {
mese = "February";
} else if (mese==03) {
mese = "March";
} else if (mese==04) {
mese = "April";
} else if (mese==05) {
mese = "may";
} else if (mese==06) {
mese = "june";
} else if (mese==07) {
mese = "july";
} else if (mese==8) {
mese = "Agost";
} else if (mese==9) {
mese = "September";
} else if (mese==10) {
mese = "october";
}
موفق باشيد