Error: Statement must appear within on/onClipEvent handler

[FlashCS3-AS2.0]

i’m getting continuous errors of: ‘‘Statement must appear within
on/onClipEvent handler’’

On one .swf the script is working fine, but on 3 others im gettin 9
error messages on each.

I have entered the script on the ‘Frame’ on every scene, including the
one that worked.

Heres the script:

**var groupinfo:Array = [intro, menu, modern, street, freestyle];

var activebtn:MovieClip;

function grow() {
if (this._yscale < 180) {
this._yscale += 10;
}
}

function shrink() {
if (this._yscale > 100) {
this._yscale -= 10;
}
}

function doRollOver() {
if (this != activebtn) {
this.onEnterFrame = grow;
}
}

function doRollOut() {
if (this != activebtn) {
this.onEnterFrame = shrink;
}
}

function doClick() {
activebtn.onEnterFrame = shrink;

delete this.onEnterFrame;
this._yscale = 200;

activebtn = this;
}

function init() {
for (var mc in groupinfo) {
groupinfo[mc].onRollOver = doRollOver;
groupinfo[mc].onRollOut = doRollOut;
groupinfo[mc].onRelease = doClick;
}
}

init();
**

Any ideas?