Stop all movie clips...HELP!

Hi, I’ve been using this code to try and stop a main movie clip and all of the movie clips inside it.

Some will be familiar with it. My problem is that this code only stops the main movie “elements” but none of the nested clips, can anyone spot a glaring mistake.

Cheers

(a ******* graphic designer!)

function stopAllClips(clip) {
clip.stop();
for (var i in clip) {
if (typeof clip* == “elements”) {
if (clip* != clip) {
stopAllClips(clip*);
}
}
}
}
function startAllClips(clip) {
clip.play();
for (var i in clip) {
if (typeof clip* == “elements”) {
if (clip* != clip) {
startAllClips(clip*);
}
}
}
}

on (release) {
if (!_root.stopped) {
_root.stopAllClips(_root.elements);
_root.stopped = true;
} else {
_root.startAllClips(_root.elements);
_root.stopped = false;
}
}