ShIzO
10-11-2001, 02:28 PM
hey,
i know there is a tutorial on how to do this and did went over it, but it looks like i cant incorporate it with my current Movie...
Main Scene (2 frames)
1st frame:
var waitHowLong;
function startMovie() {
_root.TopBorder1.gotoAndPlay(2);
_root.TopBorder2.gotoAndPlay(2);
pause(1);
_root.MenuClip.gotoAndPlay(2);
}
function pause(seconds) {
if (seconds != "") {
waitHowLong = seconds;
_root.delay = true;
_root.startTime = getTimer()/1000;
gotoAndStop(2);
}
}
2nd frame:
startMovie();
stop();
i created a MC called 'Pauser' and placed it on the MainScene
it's code:
onClipEvent (enterFrame) {
if (_root.delay) {
if (Number(_root.waitHowLong)<=(getTimer()/1000)-_root.startTime) {
_root.delay = false;
}
}
}
what i'm trying to do is to pause for one second before the line (_root.MenuClip.gotoAndPlay(2) kicks in...
any ideas why itsn't pausing?
i know there is a tutorial on how to do this and did went over it, but it looks like i cant incorporate it with my current Movie...
Main Scene (2 frames)
1st frame:
var waitHowLong;
function startMovie() {
_root.TopBorder1.gotoAndPlay(2);
_root.TopBorder2.gotoAndPlay(2);
pause(1);
_root.MenuClip.gotoAndPlay(2);
}
function pause(seconds) {
if (seconds != "") {
waitHowLong = seconds;
_root.delay = true;
_root.startTime = getTimer()/1000;
gotoAndStop(2);
}
}
2nd frame:
startMovie();
stop();
i created a MC called 'Pauser' and placed it on the MainScene
it's code:
onClipEvent (enterFrame) {
if (_root.delay) {
if (Number(_root.waitHowLong)<=(getTimer()/1000)-_root.startTime) {
_root.delay = false;
}
}
}
what i'm trying to do is to pause for one second before the line (_root.MenuClip.gotoAndPlay(2) kicks in...
any ideas why itsn't pausing?