all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

Screens with MovieClips: Is this a bug??


Screens with MovieClips: Is this a bug?? Flashatma
6/29/2004 8:03:22 PM
flash actionscript: I am creating a multimedia presentation using Flash MX 2004 professional. On
screen 2, I have a MC in which following code is there to make some 4 sec
delay.

stop();
pauseI=setInterval(pauseF, 4*1000);
function pauseF() {
clearInterval (pauseI);
play();
}

And this code works fine in screen 2. On screen 5, I have another MC where I
want the animations to have similar pause effect and I have the same code.
In that MC, if I have the same code for more than 3 or 4 times, it doesn't
work. If I have the same code for one time it works. Where as in screen 2, I
have the same code in a separate layer and in many places inside the MC, it
works. I dont know what is going on. Could someone please help me??
Thank you in advance...

Re: Screens with MovieClips: Is this a bug?? NNSK
6/30/2004 2:54:41 AM
[quoted text, click to view]
I think it's some kind of multuthreading stuff. Using setInterval, you
actually starts one thread during playtime. Multithreading as base of flash
animation and playhead control is not transparent for user, so you could
just try to make experiments, or to ask macromedia about it.

AddThis Social Bookmark Button