고수님들 도와주세요. 플래시 메뉴 링크가 먹질 않습니다. 정보
고수님들 도와주세요. 플래시 메뉴 링크가 먹질 않습니다.첨부파일
본문
안녕하세요.
플래시 메뉴를 만드는데요.
아래 소스 처럼 링크를 걸어도 도통 먹질 않네요.
뭐가 잘못되었는지 고수님들께 간곡히 답변을 부탁 드립니다.
제가 완전 초보라서...
====================================
function subFunc(mc)
{
subInit(mc, mc.no);
slen = subLink[mc.no].length;
for (var _loc2 = 0; _loc2 < slen; ++_loc2)
{
mc.submenu["sub" + _loc2].no = _loc2;
mc.submenu["sub" + _loc2].onRollOver = function ()
{
mainNum = mc.no;
mc.subNum = this.no;
};
mc.area.onRollOver = function ()
{
mainNum = mc.no;
};
mc.area.onRollOut = function ()
{
mainInit();
};
mc.submenu["sub" + _loc2].onRollOut = function ()
{
mainInit();
subInit(mc, mc.no);
};
mc.submenu["sub" + _loc2].onEnterFrame = function ()
{
if (this.no == mc.subNum)
{
this.nextFrame();
this.mcColor(overSColor[0]);
}
else
{
this.prevFrame();
this.mcColor(outSColor[0]);
} // end else if
};
} // end of for
mc.area._x = mc.submenu._x;
mc.area._width = mc.submenu._width - 10;
mc.area._height = mc.submenu._height + 10;
} // End of the function
function mainInit()
{
if (mNum)
{
mainNum = mNum;
}
else
{
mainNum = undefined;
} // end else if
} // End of the function
function subInit(mc, no)
{
if (no == mNum)
{
mc.subNum = sNum;
}
else
{
mc.subNum = undefined;
} // end else if
} // End of the function
function blankCheck(ary, no)
{
for (var _loc1 = 0; _loc1 < ary.length; ++_loc1)
{
if (no == ary[_loc1])
{
return (true);
} // end if
} // end of for
return (false);
} // End of the function
function subArea(mc)
{
mc.area._width = mc.txt._width + 10;
mc.area._height = 20;
mc.area._x = 0;
mc.area._y = 0;
} // End of the function
if (link == undefined)
{
link = "";
} // end if
mainLink = [];
mainLink[0] = "http://naver.com";
mainLink[1] = "";
mainLink[2] = "";
mainLink[3] = "";
mainLink[4] = "";
mainLink[5] = "";
len = mainLink.length;
subLink = [];
var i = 0;
while (i < len)
{
subLink[i] = [];
++i;
} // end while
subLink[0][0] = "http://sir.co.kr";
subLink[0][1] = "";
subLink[0][2] = "";
subLink[0][3] = "";
subLink[0][4] = "";
subLink[0][5] = "";
subLink[0][6] = "";
subLink[1][0] = "";
subLink[1][1] = "";
subLink[1][2] = "";
subLink[1][3] = "";
subLink[1][4] = "";
subLink[1][5] = "";
subLink[1][6] = "";
subLink[2][0] = "";
subLink[2][1] = "";
subLink[2][2] = "";
subLink[2][3] = "";
subLink[2][4] = "";
subLink[2][5] = "";
subLink[2][6] = "";
subLink[3][0] = "";
subLink[3][1] = "";
subLink[3][2] = "";
subLink[3][3] = "";
subLink[3][4] = "";
subLink[3][5] = "";
subLink[3][6] = "";
subLink[4][0] = "";
subLink[4][1] = "";
subLink[4][2] = "";
subLink[4][3] = "";
subLink[4][4] = "";
subLink[4][5] = "";
subLink[4][6] = "";
subLink[5][0] = "";
subLink[5][1] = "";
subLink[5][2] = "";
subLink[5][3] = "";
subLink[5][4] = "";
subLink[5][5] = "";
subLink[5][6] = "";
mTag = [];
sTag = [];
var i = 0;
while (i < len)
{
sTag[i] = [];
++i;
} // end while
sTag[0] = [];
sTag[1] = [];
sTag[2] = [];
sTag[3] = [];
sTag[4] = [];
sTag[5] = [];
overKMColor = ["0xFF9600"];
outKMColor = ["0xFF6D01"];
outEMColor = ["0xFF6D01"];
overSColor = ["0xFCEA6E"];
outSColor = ["0xffffff"];
count = 0;
back.gotoAndStop(Number(mNum) + 2);
MovieClip.prototype.mcColor = function (code)
{
myObj = new Color(this);
myObj.setRGB(code);
};
var i = 0;
while (i < len)
{
this["menu" + i].no = this["sub_bar" + i].no = i;
this["menu" + i].onRollOver = function ()
{
mainNum = this.no;
};
this["menu" + i].onRollOut = function ()
{
mainInit();
};
this["menu" + i].onEnterFrame = function ()
{
if (this.no == mainNum)
{
this.nextFrame();
tx = this._parent["sub_bar" + this.no]._x;
tw = this._parent["sub_bar" + this.no]._width;
this.kTxt.txt.mcColor(overKMColor[0]);
backBack.nextFrame();
}
else
{
this.prevFrame();
this.kTxt.txt.mcColor(outKMColor[0]);
this.eTxt.txt.mcColor(outEMColor[0]);
} // end else if
if (count > len - 3)
{
if (mainNum == undefined)
{
backBack.prevFrame();
count = 0;
} // end if
}
else
{
++count;
} // end else if
this.area._width = this.area._width + 1.700000E-001 * (this.targetw - this.area._width);
this._parent["bar" + this.no]._x = this._x + this._width;
this.txt._x = this._width / 2;
};
this["sub_bar" + i].onEnterFrame = function ()
{
if (this.no == mainNum)
{
this.nextFrame();
}
else
{
this.prevFrame();
} // end else if
};
++i;
} // end while
backBack.onEnterFrame = function ()
{
this._x = this._x + 1.500000E-001 * (tx - this._x);
this.back.subBack1._width = this.back.subBack1._width + (1.500000E-001 * (tw - this.back.subBack1._width) - 1);
this.back.subBack2._x = this.back.subBack1._x + this.back.subBack1._width - 1;
};
mainInit();
플래시 메뉴를 만드는데요.
아래 소스 처럼 링크를 걸어도 도통 먹질 않네요.
뭐가 잘못되었는지 고수님들께 간곡히 답변을 부탁 드립니다.
제가 완전 초보라서...
====================================
function subFunc(mc)
{
subInit(mc, mc.no);
slen = subLink[mc.no].length;
for (var _loc2 = 0; _loc2 < slen; ++_loc2)
{
mc.submenu["sub" + _loc2].no = _loc2;
mc.submenu["sub" + _loc2].onRollOver = function ()
{
mainNum = mc.no;
mc.subNum = this.no;
};
mc.area.onRollOver = function ()
{
mainNum = mc.no;
};
mc.area.onRollOut = function ()
{
mainInit();
};
mc.submenu["sub" + _loc2].onRollOut = function ()
{
mainInit();
subInit(mc, mc.no);
};
mc.submenu["sub" + _loc2].onEnterFrame = function ()
{
if (this.no == mc.subNum)
{
this.nextFrame();
this.mcColor(overSColor[0]);
}
else
{
this.prevFrame();
this.mcColor(outSColor[0]);
} // end else if
};
} // end of for
mc.area._x = mc.submenu._x;
mc.area._width = mc.submenu._width - 10;
mc.area._height = mc.submenu._height + 10;
} // End of the function
function mainInit()
{
if (mNum)
{
mainNum = mNum;
}
else
{
mainNum = undefined;
} // end else if
} // End of the function
function subInit(mc, no)
{
if (no == mNum)
{
mc.subNum = sNum;
}
else
{
mc.subNum = undefined;
} // end else if
} // End of the function
function blankCheck(ary, no)
{
for (var _loc1 = 0; _loc1 < ary.length; ++_loc1)
{
if (no == ary[_loc1])
{
return (true);
} // end if
} // end of for
return (false);
} // End of the function
function subArea(mc)
{
mc.area._width = mc.txt._width + 10;
mc.area._height = 20;
mc.area._x = 0;
mc.area._y = 0;
} // End of the function
if (link == undefined)
{
link = "";
} // end if
mainLink = [];
mainLink[0] = "http://naver.com";
mainLink[1] = "";
mainLink[2] = "";
mainLink[3] = "";
mainLink[4] = "";
mainLink[5] = "";
len = mainLink.length;
subLink = [];
var i = 0;
while (i < len)
{
subLink[i] = [];
++i;
} // end while
subLink[0][0] = "http://sir.co.kr";
subLink[0][1] = "";
subLink[0][2] = "";
subLink[0][3] = "";
subLink[0][4] = "";
subLink[0][5] = "";
subLink[0][6] = "";
subLink[1][0] = "";
subLink[1][1] = "";
subLink[1][2] = "";
subLink[1][3] = "";
subLink[1][4] = "";
subLink[1][5] = "";
subLink[1][6] = "";
subLink[2][0] = "";
subLink[2][1] = "";
subLink[2][2] = "";
subLink[2][3] = "";
subLink[2][4] = "";
subLink[2][5] = "";
subLink[2][6] = "";
subLink[3][0] = "";
subLink[3][1] = "";
subLink[3][2] = "";
subLink[3][3] = "";
subLink[3][4] = "";
subLink[3][5] = "";
subLink[3][6] = "";
subLink[4][0] = "";
subLink[4][1] = "";
subLink[4][2] = "";
subLink[4][3] = "";
subLink[4][4] = "";
subLink[4][5] = "";
subLink[4][6] = "";
subLink[5][0] = "";
subLink[5][1] = "";
subLink[5][2] = "";
subLink[5][3] = "";
subLink[5][4] = "";
subLink[5][5] = "";
subLink[5][6] = "";
mTag = [];
sTag = [];
var i = 0;
while (i < len)
{
sTag[i] = [];
++i;
} // end while
sTag[0] = [];
sTag[1] = [];
sTag[2] = [];
sTag[3] = [];
sTag[4] = [];
sTag[5] = [];
overKMColor = ["0xFF9600"];
outKMColor = ["0xFF6D01"];
outEMColor = ["0xFF6D01"];
overSColor = ["0xFCEA6E"];
outSColor = ["0xffffff"];
count = 0;
back.gotoAndStop(Number(mNum) + 2);
MovieClip.prototype.mcColor = function (code)
{
myObj = new Color(this);
myObj.setRGB(code);
};
var i = 0;
while (i < len)
{
this["menu" + i].no = this["sub_bar" + i].no = i;
this["menu" + i].onRollOver = function ()
{
mainNum = this.no;
};
this["menu" + i].onRollOut = function ()
{
mainInit();
};
this["menu" + i].onEnterFrame = function ()
{
if (this.no == mainNum)
{
this.nextFrame();
tx = this._parent["sub_bar" + this.no]._x;
tw = this._parent["sub_bar" + this.no]._width;
this.kTxt.txt.mcColor(overKMColor[0]);
backBack.nextFrame();
}
else
{
this.prevFrame();
this.kTxt.txt.mcColor(outKMColor[0]);
this.eTxt.txt.mcColor(outEMColor[0]);
} // end else if
if (count > len - 3)
{
if (mainNum == undefined)
{
backBack.prevFrame();
count = 0;
} // end if
}
else
{
++count;
} // end else if
this.area._width = this.area._width + 1.700000E-001 * (this.targetw - this.area._width);
this._parent["bar" + this.no]._x = this._x + this._width;
this.txt._x = this._width / 2;
};
this["sub_bar" + i].onEnterFrame = function ()
{
if (this.no == mainNum)
{
this.nextFrame();
}
else
{
this.prevFrame();
} // end else if
};
++i;
} // end while
backBack.onEnterFrame = function ()
{
this._x = this._x + 1.500000E-001 * (tx - this._x);
this.back.subBack1._width = this.back.subBack1._width + (1.500000E-001 * (tw - this.back.subBack1._width) - 1);
this.back.subBack2._x = this.back.subBack1._x + this.back.subBack1._width - 1;
};
mainInit();
댓글 전체