Grazie mille
allora ho provato come mi hai detto tu guarda
sul primo frame:
codice:
function restDate() {
// prendo la data attuale
myDate = new Date();
//
anno = myDate.getFullYear();
giorno = myDate.getDate();
nomegiorno = myDate.getDay();
mese = myDate.getMonth();
ora = myDate.getHours();
minuti = myDate.getMinutes();
secondi = myDate.getSeconds();
arraynomegiorno = new Array();
arraynomegiorno = ["Domenica", "Lunedi", "Martedi", "Mercoledi", "Giovedi", "venerdi", "Sabato"];
//
arraymese = new Array();
//
arraymese = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"];
//
_global.miadata = giorno+"/"+arraymese[mese]+"/"+anno+"/"+ora+"/"+minuti+"/"+secondi;
}
poi ho messo un tasto
e ho scritto
codice:
on (release) {
trace(restDate());
}
ma mi dà
:master: