c

플래시 베너를 만들었는데.. 수정중에 움직이질 않아요...

배너 만들고 instance name을 모조리 m1 m2 m3 m4 m5로 바꾸고

액션부분 스크립트를 네이버 검색해서 이런식으로 수정했는데요

==========================================================================================

function fun1()
{
++counter;
if (counter == numOfImage + 1)
{
counter = 1;
} // end if
} // End of the function
link = new Array();
frameName = new Array();
numOfImage = 5;
temp = 450;
gap = 3000;
counter = 1;
link[1] = "/base/m2/menu1.php";
link[2] = "/base/m2/menu4.php";
link[3] = "/base/m2/menu1.php";
link[4] = "/base/m5/menu2.php";
link[5] = "/base/m5/menu3.php";
frameName[1] = "_self";
frameName[2] = "_self";
frameName[3] = "_self";
frameName[4] = "_self";
frameName[5] = "_self";
btnIsOpen = false;
for (i = 1; i <= numOfImage; i++)
{
this["m"+i].gotoAndStop(i);
this[i].defaultY = this["m"+i]._y;
imageSet["m"+i]._x = (i - 1) * temp;
imageSet["m"+i].onRelease = btnSet["m"+i].onRelease = function ()
{
getURL(link[this._name], frameName[this._name]);
};
imageSet["m"+i].onRollOver = function ()
{
btnIsOpen = true;
};
imageSet["m"+i].onRollOut = function ()
{
btnIsOpen = false;
};
btnSet["m"+i].onRollOver = function ()
{
counter = Number(this._name);
clearInterval(interval);
btnIsOpen = true;
};
btnSet[i].onRollOut = btnSet["m"+i].onDragOut = function ()
{
interval = setInterval(fun1, gap);
btnIsOpen = false;
};
btnSet[i].onEnterFrame = function ()
{
var _loc1 = this;
if (counter == _loc1._name)
{
_loc1.nextFrame();
return;
} // end if
_loc1.prevFrame();
};
} // end of for
btnSet.onEnterFrame = function ()
{
var _loc1 = this;
_loc1.check._x = _loc1.check._x + (_loc1[counter]._x - _loc1.check._x) / 2;
if (btnIsOpen)
{
_loc1._y = _loc1._y + (1 - _loc1._y);
return;
} // end if
_loc1._y = _loc1._y + (1 - _loc1._y);
};
imageSet.onEnterFrame = function ()
{
this._x = this._x + (-(counter - 1) * temp - this._x) / 10;
};
interval = setInterval(fun1, gap);
==========================================================================================

플래시가 움직이질 않네요..

좀 알려주셨음 합니다~ 부탁할께요~

첨부파일

~banner57_6.fla (235.6 KB) 3회 2013-03-19 14:47
|

댓글 2개

이런 부분은 제작의뢰를 이용해 보시는 것이 좋을 듯 합니다.
[i]를 ["m"+i]로 다고쳐서 하래서 그렇게 했더니 움직이질 않네요 혹시 다른부분도 만져야 하나요?
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
12년 전 조회 846
12년 전 조회 2,913
12년 전 조회 1,839
12년 전 조회 1,160
12년 전 조회 654
12년 전 조회 1,024
12년 전 조회 1,515
12년 전 조회 858
12년 전 조회 1,525
12년 전 조회 828
12년 전 조회 1,607
12년 전 조회 1,530
12년 전 조회 1,132
12년 전 조회 1,682
12년 전 조회 893
12년 전 조회 1,030
12년 전 조회 1,582
12년 전 조회 1,518
12년 전 조회 1,606
12년 전 조회 1,693
🐛 버그신고