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.