myURL = ["category1.htm", "category2.htm", "category3.htm", "category4.htm", "category5.htm", "category6.htm"];
_global.active = pageNum;
if (_global.active == undefined) {
_global.active = 1;
}
numOfMenu = 6;
_global.current = active;
for (i=1; i<=numOfMenu; i++) {
this[i].mainText.gotoAndStop(i);
this[i].bg.onRollOver = function() {
_global.over = this._parent._name;
};
this[i].bg.onRollOut = this[i].bg.onDragOut=function () {
_global.over = this._parent._name;
};
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();
}
};
}
要加
_global.over = _global.active;
_global.over = 1;
loading