Is there anyway of inserting a clock/timer onto a basic slide?

Nov 17, 2014

i know this can be done on quizzes but does anyone know if it can be  done on a basic slide?

13 Replies
Howie Pearson

That's it. 

Do i just paste this code into a JS trigger?

//1.
myText_txt.text = "0";
var myTimer:Timer=new Timer(1000,0);
myTimer.addEventListener(TimerEvent.TIMER, stopWatch);

//2.
function stopWatch(event:TimerEvent):void {
myText_txt.text=String(myTimer.currentCount);
}

//3.
start_btn.addEventListener(MouseEvent.CLICK, startClock);
stop_btn.addEventListener(MouseEvent.CLICK, stopClock);
reset_btn.addEventListener(MouseEvent.CLICK, resetClock);

//4.
function startClock(event:MouseEvent):void {
myTimer.start();
}

//5.
function stopClock(event:MouseEvent):void {
myTimer.stop();
}

//6.
function resetClock(event:MouseEvent):void {
myTimer.reset();
myText_txt.text="0";
}

Seth Ozen

Ok, my bad. This won't be easy for you. That's an AS3 code and you need to know just a little Flash. Attached is a count-up timer with mins and secs. You can simply insert the .swf file for a visual on any slide. If you want SL to do something when a certain amount of time has elapsed, that will require further coding.

This discussion is closed. You can start a new discussion or contact Articulate Support.