Search Tutorials
Actionscript: frame 1, part 1Next we need to add some actionscript to give functionality to buttons and frames. We add actionscript to get the current date and add a function here to clear the automatic advancement of slides (function clearEverything). The automatic slide advancement is discussed later.
myDate = new Date();
dateTextField = (myDate.getMonth() + " - " +myDate.getDate() + " - " +myDate.getFullYear());
function clearEverything() {
for (timer=1;timer <= 10;timer++) {
clearInterval(myTimer +timer);
}
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|