arkadaşlar hazır bir flash template var elimde sitenin her yerini değiştirdim ancak menüyü bir türlü değiştiremedim menü bölümünün action kodları aşağıdaki gibi nasıl değiştirebilirim,yardımcı olursanız sevinirim...
_root.openPageFlag = true; var i = 1; while (i <= 5) { var butNum = this["b" + i]; butNum.index = i; butNum._txt_1.gotoAndStop(i); butNum._txt_2.gotoAndStop(i); butNum._txt_btn1.gotoAndStop(i); butNum._bg.gotoAndStop(i); butNum._ms.gotoAndStop(i); butNum.onRollOver = function () { if (this.index != _root.link) { this.gotoAndPlay("over"); } // end if }; butNum.onRollOut = butNum.onReleaseOutside = function () { if (this.index != _root.link) { this.gotoAndPlay("out"); } // end if }; butNum.onRelease = function () { if (this.index != _root.link && _root.openPageFlag == false) { _root.openPageFlag = true; _root.MC_menu["b" + _root.link].gotoAndPlay("out"); _root.MC_menu1["b" + _root.link].gotoAndPlay("out"); _root.link = this.index; _root.MC_menu["b" + _root.link].gotoAndPlay("over"); _root.MC_content.play(); trace ("_root.isOpenBigImage : " + _root.isOpenBigImage); if (_root.isOpenBigImage == true) { _root.MC_content.pages.gallery.closeBigImage(); } // end if } // end if }; ++i; } // end while
_root.openPageFlag = true;
var i = 1;
while (i <= 5)
{
var butNum = this["b" + i];
butNum.index = i;
butNum._txt_1.gotoAndStop(i);
butNum._txt_2.gotoAndStop(i);
butNum._txt_btn1.gotoAndStop(i);
butNum._bg.gotoAndStop(i);
butNum._ms.gotoAndStop(i);
butNum.onRollOver = function ()
{
if (this.index != _root.link)
{
this.gotoAndPlay("over");
} // end if
};
butNum.onRollOut = butNum.onReleaseOutside = function ()
{
if (this.index != _root.link)
{
this.gotoAndPlay("out");
} // end if
};
butNum.onRelease = function ()
{
if (this.index != _root.link && _root.openPageFlag == false)
{
_root.openPageFlag = true;
_root.MC_menu["b" + _root.link].gotoAndPlay("out");
_root.MC_menu1["b" + _root.link].gotoAndPlay("out");
_root.link = this.index;
_root.MC_menu["b" + _root.link].gotoAndPlay("over");
_root.MC_content.play();
trace ("_root.isOpenBigImage : " + _root.isOpenBigImage);
if (_root.isOpenBigImage == true)
{
_root.MC_content.pages.gallery.closeBigImage();
} // end if
} // end if
};
++i;
} // end while