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);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------
게시글 목록
| 번호 | 제목 |
|---|---|
| 2387 | |
| 8402 | |
| 8397 |
기타
시안하나올립니다
4
|
| 5952 | |
| 8391 | |
| 8387 |
기타
팝업~입니다
3
|
| 8384 |
기타
눈이내려요~~
2
|
| 2358 | |
| 8383 |
기타
메인페이지
|
| 2340 | |
| 2336 | |
| 8379 | |
| 8375 | |
| 8372 |
기타
회사 소개 디자인
2
|
| 5949 | |
| 2325 | |
| 2312 | |
| 5942 | |
| 5924 | |
| 8363 | |
| 2308 | |
| 2297 | |
| 2286 | |
| 8356 |
기타
리바트 네오스 시안
6
|
| 2277 | |
| 2271 | |
| 8347 |
기타
이투스 누드공부방
8
|
| 8330 |
기타
신세계 백화점시안
16
|
| 8317 | |
| 8307 |
기타
올림푸스시안 ㅎㅎㅎ
9
|
| 2262 | |
| 8298 | |
| 8292 | |
| 8282 | |
| 2257 | |
| 8259 | |
| 8263 |
기타
동그리패턴
18
|
| 2241 | |
| 8249 | |
| 8242 | |
| 2232 | |
| 8233 | |
| 8226 |
기타
아이콘 쓰세요 ~
6
|
| 8212 | |
| 8208 | |
| 8201 | |
| 8194 | |
| 8190 | |
| 2221 | |
| 8188 |
기타
무료 아이콘 나누미
1
|
| 8181 | |
| 8179 |
기타
가구 일러스트 몇
1
|
| 8176 |
기타
아기옷 일러스트?
2
|
| 8173 |
기타
디자인 엘리먼트
2
|
| 8161 | |
| 2216 | |
| 8155 |
기타
깔끔한 메인 시안
5
|
| 2205 | |
| 8148 | |
| 8145 |
기타
배너 시안 (1)
2
|
| 2203 | |
| 8137 |
기타
팬션디자인
7
|
| 2200 | |
| 2199 | |
| 8135 |
스크랩
상품박스이미지2
1
|
| 8134 | |
| 2193 | |
| 8120 | |
| 2189 | |
| 8119 | |
| 2186 | |
| 8117 |
기타
메뉴..
1
|
| 8113 | |
| 2174 | |
| 8104 | |
| 8081 | |
| 8075 | |
| 8063 | |
| 2155 | |
| 2144 | |
| 7996 | |
| 2139 | |
| 2132 | |
| 2111 | |
| 2106 | |
| 7995 | |
| 2099 | |
| 2097 | |
| 2080 | |
| 2075 | |
| 2070 | |
| 2066 | |
| 2061 | |
| 7988 | |
| 2054 | |
| 2048 | |
| 2040 | |
| 2035 | |
| 2029 | |
| 2028 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기