HellO!
Question:
How can I make a movieclip play in every 5 seconds.
exmpl: When 5 seconds are full the mc starts playing and then the timer starts counting from 0 and then somewhere there is a stop action and when 5 seconds are elapsed again it plays on…
I tried
onClipEvent (enterFrame) {
playmc = function () {
_root.mc.play();
};
setInterval( playmc, 5000 );
}
but it didn’t work
It holds for five seconds… then starts playing(no problems for now) but it never stops it plays on and on and on and on…
Like it counts to five and lets go the play() action for onClipEvent(enterFrame) or something…
What the **** am I doing wrong???:q:
well …yeah…
Acually want it to trigger a play() action in every x seconds but I think it can be done that way too…
BUT! I don’t understand anything about that script…
wtf is clearinterval???
and what is obj, id, pzeit …
I don’t visit that site cuz there are no explanations of what each action does…
I searched the flash help for the clearinterval but I didn’t understand the explanations either… :*(
This is so annoying! This little thingy-so big problem…
… btw note that a setInterval shouldnt be called in an enterFrame event because thats redeclaring the interval everyframe which you dont want (I think Ill add that in there too)
*Originally posted by senocular *
**… btw note that a setInterval shouldnt be called in an enterFrame event because thats redeclaring the interval everyframe which you dont want (I think Ill add that in there too) **
You might also consider setInterval a replacement of enterFrame tho, it looks similar, but setInterval is Time dependent, and enterFrame is frame dependent.
Believe me ilyas i haven’t read the whole chapter, it was really so much to just explain a small command.