http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z1_1
위 홈페이지에서 플래시 링크를 직접걸었는데 링크가 정상적으로 안됩니다.
어떤식으로 링크를 걸어야하나요?
혹 아시는분 답변 좀 부탁드립니다. *^^*
------아래는 플래시 파일에있는 액션입니다.--------------------------------------------
numOfMenu = 7;
// 메인 메뉴 개수
/*
메인메뉴가 추가될 때, 각 링크를 추가해서 사용하시면 됩니다.
- 예를 들어 6번째 메인메뉴가 추가될 경우,
위 numOfMenu 값을 5로 하고,
아래 mainLink[5] = "board/index.html"; 아래 mainLink[6] = "링크주소"; 을 추가합니다.
또한 targetFrame[5] = "_self"; 아래 targetFrame[6] = "타겟"; 을 추가합니다.
서브메뉴도 위와 같은 방법으로 추가합니다.
*/
//
mainLink = new Array();
mainLink[1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z1_1";
mainLink[2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_1";
mainLink[3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_1";
mainLink[4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_1";
mainLink[5] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_1";
mainLink[6] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z6_1";
mainLink[7] = "http://ecoworld.zzum.kr/youngcart4/";
// 메인버튼 링크 주소
//
targetFrame = new Array();
targetFrame[1] = "_self";
targetFrame[2] = "_self";
targetFrame[3] = "_self";
targetFrame[4] = "_self";
targetFrame[5] = "_self";
targetFrame[6] = "_self";
targetFrame[7] = "_self";
// 메인버튼 타겟 프레임
//
_global.subBtnTotal = new Array();
subBtnTotal[1] = 3;
subBtnTotal[2] = 4;
subBtnTotal[3] = 5;
subBtnTotal[4] = 5;
subBtnTotal[5] = 4;
subBtnTotal[6] = 3;
subBtnTotal[7] = 1;
// 각 메뉴의 서브버튼 개수
//
_global.subLink = new Array();
for (i=1; i<=numOfMenu; i++) {
subLink[i] = new Array();
}
//
//
subLink[1][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z1_1";
subLink[1][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z1_2";
subLink[1][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z1_3";
// 첫번째 메뉴의 서브버튼 링크주소
subLink[2][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_1";
subLink[2][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_2";
subLink[2][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_3";
subLink[2][4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_4";
// 두번째 메뉴의 서브버튼 링크주소
subLink[3][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_1";
subLink[3][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_2";
subLink[3][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_3";
subLink[3][4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_4";
subLink[3][5] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_5";
// 세번째 메뉴의 서브버튼 링크주소
subLink[4][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_1";
subLink[4][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_2";
subLink[4][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_3";
subLink[4][4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_4";
subLink[4][5] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_5";
// 네번째 메뉴의 서브버튼 링크주소
subLink[5][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_1";
subLink[5][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_2";
subLink[5][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_3";
subLink[5][4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_4";
// 다섯번째 메뉴의 서브버튼 링크주소
subLink[6][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z6_1";
subLink[6][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z6_2";
subLink[6][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z6_3";
// 여섯번째 메뉴의 서브버튼 링크주소
subLink[7][1] = "http://ecoworld.zzum.kr/youngcart4/";
// 여섯번째 메뉴의 서브버튼 링크주소
위 홈페이지에서 플래시 링크를 직접걸었는데 링크가 정상적으로 안됩니다.
어떤식으로 링크를 걸어야하나요?
혹 아시는분 답변 좀 부탁드립니다. *^^*
------아래는 플래시 파일에있는 액션입니다.--------------------------------------------
numOfMenu = 7;
// 메인 메뉴 개수
/*
메인메뉴가 추가될 때, 각 링크를 추가해서 사용하시면 됩니다.
- 예를 들어 6번째 메인메뉴가 추가될 경우,
위 numOfMenu 값을 5로 하고,
아래 mainLink[5] = "board/index.html"; 아래 mainLink[6] = "링크주소"; 을 추가합니다.
또한 targetFrame[5] = "_self"; 아래 targetFrame[6] = "타겟"; 을 추가합니다.
서브메뉴도 위와 같은 방법으로 추가합니다.
*/
//
mainLink = new Array();
mainLink[1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z1_1";
mainLink[2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_1";
mainLink[3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_1";
mainLink[4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_1";
mainLink[5] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_1";
mainLink[6] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z6_1";
mainLink[7] = "http://ecoworld.zzum.kr/youngcart4/";
// 메인버튼 링크 주소
//
targetFrame = new Array();
targetFrame[1] = "_self";
targetFrame[2] = "_self";
targetFrame[3] = "_self";
targetFrame[4] = "_self";
targetFrame[5] = "_self";
targetFrame[6] = "_self";
targetFrame[7] = "_self";
// 메인버튼 타겟 프레임
//
_global.subBtnTotal = new Array();
subBtnTotal[1] = 3;
subBtnTotal[2] = 4;
subBtnTotal[3] = 5;
subBtnTotal[4] = 5;
subBtnTotal[5] = 4;
subBtnTotal[6] = 3;
subBtnTotal[7] = 1;
// 각 메뉴의 서브버튼 개수
//
_global.subLink = new Array();
for (i=1; i<=numOfMenu; i++) {
subLink[i] = new Array();
}
//
//
subLink[1][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z1_1";
subLink[1][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z1_2";
subLink[1][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z1_3";
// 첫번째 메뉴의 서브버튼 링크주소
subLink[2][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_1";
subLink[2][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_2";
subLink[2][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_3";
subLink[2][4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z2_4";
// 두번째 메뉴의 서브버튼 링크주소
subLink[3][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_1";
subLink[3][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_2";
subLink[3][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_3";
subLink[3][4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_4";
subLink[3][5] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z3_5";
// 세번째 메뉴의 서브버튼 링크주소
subLink[4][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_1";
subLink[4][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_2";
subLink[4][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_3";
subLink[4][4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_4";
subLink[4][5] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z4_5";
// 네번째 메뉴의 서브버튼 링크주소
subLink[5][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_1";
subLink[5][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_2";
subLink[5][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_3";
subLink[5][4] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z5_4";
// 다섯번째 메뉴의 서브버튼 링크주소
subLink[6][1] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z6_1";
subLink[6][2] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z6_2";
subLink[6][3] = "http://ecoworld.zzum.kr/youngcart4/bbs/board.php?bo_table=z6_3";
// 여섯번째 메뉴의 서브버튼 링크주소
subLink[7][1] = "http://ecoworld.zzum.kr/youngcart4/";
// 여섯번째 메뉴의 서브버튼 링크주소
댓글 1개
아사달에서 판매하는 플래시 소스에서
"./" -> "" 이렇게 처리하고 절대경로 처리하면 됩니다.
장원철 님게서 알려주셨습니다.
감사합니다.
---------------아래는 소스입니다.--------------------------
/* TM DGIANT FLASH */
_global.active = pageNum;
_global.subActive = subNum;
_global.over = active;
_global.subBgOver = active;
for (i=1; i<=numOfMenu; i++) {
this[i].bg._alpha = 0;
this[i].bg.onRollOver = function() {
_global.over = this._parent._name;
_global.subBgOver = this._parent._name;
clearInterval(id_subBg);
};
this[i].bg.onRollOut = this[i].bg.onDragOut=function () {
_global.over = active;
id_subBg = setInterval(setSubBg, 100);
};
this[i].bg.onRelease = function() {
if(_global.active) {
getURL("../"+mainLink[this._parent._name], targetFrame[this._parent._name]);
} else {
getURL("./"+mainLink[this._parent._name], targetFrame[this._parent._name]);
}
};
this[i].onEnterFrame = function() {
for (k=1; k<=subBtnTotal[this._name]; k++) {
if (this[k] != undefined && this[k].onRelease == undefined) {
subBtnFunc(this[k]);
}
}
if (over) {
if (over == this._name) {
this.direction = "next";
this.nextFrame();
this.bg._yscale = 110;
this.mainText._xscale += (120-this.mainText._xscale)/2;
this.mainText._yscale += (120-this.mainText._yscale)/2;
this.mainText._alpha += (100-this.mainText._alpha)/2;
} else {
this.direction = "prev";
this.prevFrame();
this.prevFrame();
this.bg._yscale = 100;
this.mainText._xscale += (100-this.mainText._xscale)/2;
this.mainText._yscale += (100-this.mainText._yscale)/2;
this.mainText._alpha += (60-this.mainText._alpha)/2;
}
} else {
this.direction = "prev";
this.prevFrame();
this.bg._yscale = 100;
this.mainText._xscale += (100-this.mainText._xscale)/2;
this.mainText._yscale += (100-this.mainText._yscale)/2;
this.mainText._alpha += (100-this.mainText._alpha)/2;
}
};
}
_global.subBtnFunc = function(that) {
that.onRollOver = function() {
clearInterval(id_subBg);
this._parent.temp = this._name;
if (this._parent.direction == "next") {
if (this._parent._name != active || this._name != subActive) {
clearInterval(this._parent.id);
_global.over = this._parent._name;
if (this._parent.first) {
this._parent[subActive].gotoAndPlay(10);
this._parent.first = false;
}
this.gotoAndPlay(2);
}
}
};
that.onRollOut = function() {
id_subBg = setInterval(setSubBg, 100);
if (this._parent._name == active) {
if (this._name != subActive) {
this._parent.id = setInterval(this._parent.aa, 10, this._parent);
this.gotoAndPlay(10);
this._parent.temp = subActive;
}
} else {
this.gotoAndPlay(10);
}
_global.over = active;
};
that.onRelease = function() {
var temp1 = this._parent._name;
var temp2 = this._name;
var temp3 = temp1+temp2;
var frame = "_self";
// 아래 부분은 공통된 타겟으로 사용할 때,
// 특정한 한 부분의 타겟을 다른 것으로 바꿀때 주석을 해제하고 사용합니다.
// 예를 들어 2번째 메인메뉴의 3번째 서브메뉴의 링크 타겟만 _blank가 된다면, 아래 주석처럼 처리합니다.
/* if (temp3 == 23) {
frame = "_blank";
}
*/
// 링크 적용시 주석을 해제합니다.
if(_global.active) {
getURL("../"+subLink[temp1][temp2], frame);
} else {
getURL("./"+subLink[temp1][temp2], frame);
}
};
};
subBg.useHandCursor = false;
subBg.onRollOver = function() {
_global.over = subBgOver;
clearInterval(id_subBg);
}
subBg.onRollOut = function() {
_global.over = active;
id_subBg = setInterval(setSubBg, 100);
}
this.onEnterFrame = function() {
if(over) {
subBg.nextFrame();
menuOverLine._alpha += (100 - menuOverLine._alpha)/4;
menuOverLine._xscale += (this[subBgOver].bg._width - menuOverLine._xscale - 20)/4
} else {
subBg.prevFrame();
menuOverLine._alpha += (0 - menuOverLine._alpha)/4;
}
menuOverLine._x += (this[subBgOver]._x - menuOverLine._x)/4;
}
menuOverLine._alpha = 0;
function setSubBg() {
_global.subBgOver = active;
clearInterval(id_subBg);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------
"./" -> "" 이렇게 처리하고 절대경로 처리하면 됩니다.
장원철 님게서 알려주셨습니다.
감사합니다.
---------------아래는 소스입니다.--------------------------
/* TM DGIANT FLASH */
_global.active = pageNum;
_global.subActive = subNum;
_global.over = active;
_global.subBgOver = active;
for (i=1; i<=numOfMenu; i++) {
this[i].bg._alpha = 0;
this[i].bg.onRollOver = function() {
_global.over = this._parent._name;
_global.subBgOver = this._parent._name;
clearInterval(id_subBg);
};
this[i].bg.onRollOut = this[i].bg.onDragOut=function () {
_global.over = active;
id_subBg = setInterval(setSubBg, 100);
};
this[i].bg.onRelease = function() {
if(_global.active) {
getURL("../"+mainLink[this._parent._name], targetFrame[this._parent._name]);
} else {
getURL("./"+mainLink[this._parent._name], targetFrame[this._parent._name]);
}
};
this[i].onEnterFrame = function() {
for (k=1; k<=subBtnTotal[this._name]; k++) {
if (this[k] != undefined && this[k].onRelease == undefined) {
subBtnFunc(this[k]);
}
}
if (over) {
if (over == this._name) {
this.direction = "next";
this.nextFrame();
this.bg._yscale = 110;
this.mainText._xscale += (120-this.mainText._xscale)/2;
this.mainText._yscale += (120-this.mainText._yscale)/2;
this.mainText._alpha += (100-this.mainText._alpha)/2;
} else {
this.direction = "prev";
this.prevFrame();
this.prevFrame();
this.bg._yscale = 100;
this.mainText._xscale += (100-this.mainText._xscale)/2;
this.mainText._yscale += (100-this.mainText._yscale)/2;
this.mainText._alpha += (60-this.mainText._alpha)/2;
}
} else {
this.direction = "prev";
this.prevFrame();
this.bg._yscale = 100;
this.mainText._xscale += (100-this.mainText._xscale)/2;
this.mainText._yscale += (100-this.mainText._yscale)/2;
this.mainText._alpha += (100-this.mainText._alpha)/2;
}
};
}
_global.subBtnFunc = function(that) {
that.onRollOver = function() {
clearInterval(id_subBg);
this._parent.temp = this._name;
if (this._parent.direction == "next") {
if (this._parent._name != active || this._name != subActive) {
clearInterval(this._parent.id);
_global.over = this._parent._name;
if (this._parent.first) {
this._parent[subActive].gotoAndPlay(10);
this._parent.first = false;
}
this.gotoAndPlay(2);
}
}
};
that.onRollOut = function() {
id_subBg = setInterval(setSubBg, 100);
if (this._parent._name == active) {
if (this._name != subActive) {
this._parent.id = setInterval(this._parent.aa, 10, this._parent);
this.gotoAndPlay(10);
this._parent.temp = subActive;
}
} else {
this.gotoAndPlay(10);
}
_global.over = active;
};
that.onRelease = function() {
var temp1 = this._parent._name;
var temp2 = this._name;
var temp3 = temp1+temp2;
var frame = "_self";
// 아래 부분은 공통된 타겟으로 사용할 때,
// 특정한 한 부분의 타겟을 다른 것으로 바꿀때 주석을 해제하고 사용합니다.
// 예를 들어 2번째 메인메뉴의 3번째 서브메뉴의 링크 타겟만 _blank가 된다면, 아래 주석처럼 처리합니다.
/* if (temp3 == 23) {
frame = "_blank";
}
*/
// 링크 적용시 주석을 해제합니다.
if(_global.active) {
getURL("../"+subLink[temp1][temp2], frame);
} else {
getURL("./"+subLink[temp1][temp2], frame);
}
};
};
subBg.useHandCursor = false;
subBg.onRollOver = function() {
_global.over = subBgOver;
clearInterval(id_subBg);
}
subBg.onRollOut = function() {
_global.over = active;
id_subBg = setInterval(setSubBg, 100);
}
this.onEnterFrame = function() {
if(over) {
subBg.nextFrame();
menuOverLine._alpha += (100 - menuOverLine._alpha)/4;
menuOverLine._xscale += (this[subBgOver].bg._width - menuOverLine._xscale - 20)/4
} else {
subBg.prevFrame();
menuOverLine._alpha += (0 - menuOverLine._alpha)/4;
}
menuOverLine._x += (this[subBgOver]._x - menuOverLine._x)/4;
}
menuOverLine._alpha = 0;
function setSubBg() {
_global.subBgOver = active;
clearInterval(id_subBg);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------
게시글 목록
| 번호 | 제목 |
|---|---|
| 7104 | |
| 7102 | |
| 5000 | |
| 4999 | |
| 4991 | |
| 4989 | |
| 4985 | |
| 7099 | |
| 11179 |
레이아웃
습작
1
|
| 4979 | |
| 4974 | |
| 11178 | |
| 4972 | |
| 7094 | |
| 4960 | |
| 11169 | |
| 11165 | |
| 11164 | |
| 11163 | |
| 11162 | |
| 4948 | |
| 6002 | |
| 7090 | |
| 4941 | |
| 7087 | |
| 7082 | |
| 7079 | |
| 7076 | |
| 11136 |
디자인
심플메인시안
4
|
| 11158 |
디자인
팝업디자인
3
|
| 11135 | |
| 4937 | |
| 4931 | |
| 4930 | |
| 4928 | |
| 4925 | |
| 4914 | |
| 7074 | |
| 7072 | |
| 4913 | |
| 4912 | |
| 4906 | |
| 4902 | |
| 4897 | |
| 4895 | |
| 4889 | |
| 4888 | |
| 4887 | |
| 4886 | |
| 4882 | |
| 4880 | |
| 4876 | |
| 4873 | |
| 4872 | |
| 4863 | |
| 4862 | |
| 4857 | |
| 4852 | |
| 5998 | |
| 11256 | |
| 4849 | |
| 4837 | |
| 4825 | |
| 4820 | |
| 4815 | |
| 4814 | |
| 4807 | |
| 4796 | |
| 7070 | |
| 7068 | |
| 4789 | |
| 4778 | |
| 4772 | |
| 4769 | |
| 4758 | |
| 4755 | |
| 4751 | |
| 4743 | |
| 7063 | |
| 7061 | |
| 4741 | |
| 4740 | |
| 4735 | |
| 4732 | |
| 4721 | |
| 4718 | |
| 7059 | |
| 4715 | |
| 4710 | |
| 4709 | |
| 4707 | |
| 4699 | |
| 11254 | |
| 4691 | |
| 4688 | |
| 11133 | |
| 11127 | |
| 4682 | |
| 7057 | |
| 4678 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기