setInterval + gotoAndStop + unload == bug?

Hello!

Does anyone know why this occurs or a solution for this issue?

I have several movieclips created dynamically with attachMovie inside another movieclip in the main timeline. Each one has the same unload event handler.

When I tell the main timeline to go to another frame:

_root.gotoAndStop(x);

, the unload function runs fine. Nice!

When I use:

interv = setInterval(function () {
	_root.gotoAndStop(x);
	clearInterval(interv);
}, 300);

the unload event handler of the attached movieclips don’t run! :puzzled:

In this case I need to delay the gotoAndStop action.

Thanks in advance!