here's mine: ;)
private function stopAllMovies(instance)
{
instance.onEnterFrame = function ()
{
if (this.counter == undefined)
{
this.counter = 1;
this.frameBefore = this._currentframe;
}
if (this.counter > 1)
{
if (this.frameBefore != this._currentframe)
{
this.isStopped = true;
this.stop();
}
delete this.onEnterFrame;
}
this.counter++;
}
for (var n in instance)
{
// if (instance[n] instanceof MovieClip)
if (typeof(instance[n]) == "movieclip")
{
arguments.callee(instance[n]);
}
}
}
private function playAllMovies(instance)
{
if (instance.isStopped)
{
instance.isStopped = undefined;
delete instance.isStopped;
instance.play();
}
for (var n in instance)
{
// if (instance[n] instanceof MovieClip)
if (typeof(instance[n]) == "movieclip")
{
arguments.callee(instance[n]);
}
}
}
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com