배너 만들고 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);
==========================================================================================
플래시가 움직이질 않네요..
좀 알려주셨음 합니다~ 부탁할께요~
액션부분 스크립트를 네이버 검색해서 이런식으로 수정했는데요
==========================================================================================
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);
==========================================================================================
플래시가 움직이질 않네요..
좀 알려주셨음 합니다~ 부탁할께요~
댓글 2개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기