Delaying an gotoAndPlay action

hello everybody… thanks for edvices posted.

this is what i need to learn today:
i have this movie clip that i want to keep playing from time to time
but because it is shot keeps flashing.
how can one delay the loop.

greetings from Portugal…Ahaab:)

Hi, I don’t fully understand your question, do you want the clip to pause before it plays or to play then pause before it loops round again

hi ahaab,
try searching for your post, there are a lot of similar posts about time delay…

this post it may help?

Check out this post.
http://www.kirupaforum.com/forums/s...7933#post267933

oohps…you got in there before me m_andrews…hate it when that happens :wink:

Hi,

You can either add some extra frames at the end of you animation
or you could set an interval and call the animation every so often.
Something like:
in the main timeline:


interval = function(){
 var timeToWait= random(6);
 this.lapseId = setInterval("callAnimation", interval);
}
callAnimation = function(){
 myAnimation.gotoAndPlay(2);
}
this.interval();

And in the last frame of your animation:


 clearInterval(this._parent.lapseId);
 this._parent.interval();

this way it will happen every so often at random intervals

SHO

i´m kind of sleepy and the frames solution escaped mi mind.
i will apply it i thank the php solution, and try to use it in future, because i am too green on as, and some times staring at code is like staring at a dinossaure.

greetings …Ahaab