Hi,
I found this handy little function to pause the timeline
function paused(sec) {
stop(); // action to pause
var i = sec - 1;
var t = setInterval(function () {
if (i == 0) {
clearInterval(t);
play(); // action to continue
}
i--;
}, 1000);
}
I need this function in several different frames in the timeline. How can I make this a ‘global’ function, so I only have to write it once and can use it wherever I want?
I did some googling and thought I could use the prototype thing, but I guess this is only for Movieclip functions?
Thnx in advance,
Grenouille.