flashcdog
04-02-2004, 08:53 PM
ActionScript Novice here! :)
In my main timeline on the first frame setting a pause function using the following:
stop();
function pause(){
play();
clearInterval(timer);
};
Later down on the main timeline I calling the function as follows:
stop();
timer = setInterval(pause, 3000);
All that works fine.
But here is the problem.
I also want to call it from inside an MC I have placed on the stage.
Is this function global? If so how would I call it inside another clip? _root.something?
Basically I want to pause segments of the timeline inside that MC.
As always any help would be greatly appreciated.
In my main timeline on the first frame setting a pause function using the following:
stop();
function pause(){
play();
clearInterval(timer);
};
Later down on the main timeline I calling the function as follows:
stop();
timer = setInterval(pause, 3000);
All that works fine.
But here is the problem.
I also want to call it from inside an MC I have placed on the stage.
Is this function global? If so how would I call it inside another clip? _root.something?
Basically I want to pause segments of the timeline inside that MC.
As always any help would be greatly appreciated.