hi…
how can i made something happen after 20 seconds?
something like:
after 20 seconds, gotoAndPlay()
is this possible?
thanx
gr000ve
hi…
how can i made something happen after 20 seconds?
something like:
after 20 seconds, gotoAndPlay()
is this possible?
thanx
gr000ve
try…
[AS]
stime=getTimer()/1000;
nsec=20;
this.onEnterFrame=function(){
if((getTimer()-stime)>nsec){
gotoAndPlay(x);
}
}[/AS]
i havent test that but i think it should work.
doesn´t work :sigh:
can you give one more try?
myGotoAndPlay = function (frame) {
gotoAndPlay(frame);
clearInterval(myInterval);
};
var myInterval = setInterval(myGotoAndPlay, 20000, 20);
ok
thanx to both!!
i solved it like this
myInterval = setInterval (slideShow, 20000);
function slideShow () {
gotoAndPlay (2);
}
and then i killed the funtion with this:
clearInterval(myInterval);
sorry bout that…
[AS]
stime=getTimer();
nsec=2;
_root.onEnterFrame=function(){
if((getTimer()-stime)>nsec*1000){
gotoAndPlay(x);
}
}
[/AS]
:: Copyright KIRUPA 2024 //--