I’m trying to add the date and time into my portfolio design…at the same time i want the date and time to be brought in by cycling the letters and numerals till it finds the correct date…i found the cycling tutorial and incorporated it into my design…the actionscript goes on the movieclip “main” which contains the dynamic text box “letter” and here is the actionscript that cycles through letters and numerals
onClipEvent (load) {
if (_name == “main”) {
name = “”; <----anything inside the quotes is what is cycled to…so if you put your name thats what will get cycled to…i want this to be set as the date and time…so that when refreshed or opened for the first time…the user sees the current date and time…
for (x=0; x<name.length; ++x) {
this.duplicateMovieClip(“let”+x, x);
_parent[“let”+x]._x += x*15;
_parent[“let”+x].endLetter = name.charAt(x);
}
_root.alphabet = "abcdefghijklmnopqrstuvwxyz ";
_alpha = 0;
} else {
cycle = true;
}
}
onClipEvent (enterFrame) {
if (cycle) {
if (this.letter == endLetter) {
++_root.count;
cycle = false;
} else {
this.letter = _root.alphabet.charAt(random(_root.alphabet.length));
}
}
}
if anyone can help…ill gladly pay you praises…