myURL = ["/main.html", "/comcontent_detail.html", "/industrial.html", "/responsibility/&FrontComContent_list01-1289453512928ContId=2f803f87-4017-42e5-815c-3f0dd6586156&comContentId=2f803f87-4017-42e5-815c-3f0dd6586156&comp_stats=comp-FrontComContent_list01-1289453512928.html", "/service.html", "/job.html", "/map.html", "/map1.html"];
numOfMenu = 8;
_global.active = pageNum;
_global.over = active;
for (i = 1; i <= numOfMenu; i++)
{
this[i].rect1.mainText.gotoAndStop(i);
this[i].bg.onRollOver = function ()
{
_global.over = this._parent._name;
};
this[i].bg.onRollOut = this[i].bg.onDragOut = function ()
{
_global.over = active;
};
this[i].bg.onRelease = function ()
{
getURL(myURL[this._parent._name - 1], "_self");
};
this[i].onEnterFrame = function ()
{
if (over == this._name)
{
this.nextFrame();
}
else
{
this.prevFrame();
} // end else if
};
} // end of for
帮我看看这东西哪里错了
numOfMenu = 8;
_global.active = pageNum;
_global.over = active;
for (i = 1; i <= numOfMenu; i++)
{
this[i].rect1.mainText.gotoAndStop(i);
this[i].bg.onRollOver = function ()
{
_global.over = this._parent._name;
};
this[i].bg.onRollOut = this[i].bg.onDragOut = function ()
{
_global.over = active;
};
this[i].bg.onRelease = function ()
{
getURL(myURL[this._parent._name - 1], "_self");
};
this[i].onEnterFrame = function ()
{
if (over == this._name)
{
this.nextFrame();
}
else
{
this.prevFrame();
} // end else if
};
} // end of for
帮我看看这东西哪里错了

