2008-6-6 11:07
ilflyf
高手帮忙看下这个问题
[attach]3571[/attach]我弄个FLASH导航栏出现个奇怪问题,就是第一个导航鼠标移动到下级栏正常停留,第二个导航,鼠标移到下级栏就自动缩回了。。
把[color=Red]源代码和文件放到下面[/color]。请高手帮忙看看。
部分代码如下:/* 1其捞瘤牢侥 敲贰浆 家胶涝聪促.
*/
_global.active = PageNum;
myURL = new Array();
myURL[1] = "#";
myURL[2] = "#";
myURL[3] = "#";
myURL[4] = "#";
myURL[5] = "#";
numOfMenu = 5;
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 = active;
};
this[i].bg.onRelease = function() {
getURL(myURL[this._parent._name], "_self");
};
this[i].onEnterFrame = function() {
if (over == this._name) {
this.nextFrame();
} else {
this.prevFrame();
}
};
}
-----------------------------
myURL = new Array();
myURL[1] = "#";
myURL[2] = "#";
myURL[3] = "#";
myURL[4] = "#";
myURL[5] = "#";
for (i=1; i<=5; i++) {
sub[i].onRollOver = function() {
_global.over = this._parent._parent._name;
};
sub[i].onRollOut = sub[i].onDragOut=function () {
_global.over = active;
};
sub[i].onRelease = function() {
getURL(myURL[this._name], "_self");
};
}
sub.hit.useHandCursor = false;
sub.hit.onRollOver = function() {
_global.over = this._parent._parent._name;
};
sub.hit.onRollOut = function() {
_global.over = active;
};
[attach]3571[/attach]
[[i] 本帖最后由 ilflyf 于 2008-6-6 11:13 编辑 [/i]]