Does anyone know how I can take the following script from the root level and invoke the functions within an MC?
//initiate timer paramaters
timerInit = function() {
//getting the time at this point
startTime = getTimer()/1000;
//setting the waiting period
waitFor = 3;
//5 seconds
}
//start the timer
timerPause = function () {
if (waitFor>((getTimer()/1000)-startTime)) {
gotoAndPlay("pause");
} else {
gotoAndPlay("begin");
}
}