Merhabalar, aşağıda verdiğim linkteki menünün birebir aynısını yapmak istiyorum.
Burada yapamadığım konu, örneğin home sayfasında iken , contact sayfasına tıkladığımda butonlar 1 cm aşağıya iniyor.
contact sayfasından agents sayfasına tıkladığımda ise, butonlar 5mm yukarı çıkıyor. Yani hangi butondan hangi butona tıkladığımı butonlar biliyor ve ona göre hareket ediyor. Bunu nasıl yapabilirim?
http://www.emmemoda.eu/home_eng.html
Yardımlarınızı bekliyorum. Teşekkürler.
Flash Menü
1
●449
- 30-08-2010, 23:37:21class MenuTransNE3 extends MovieClip
{
var _fla, _mia_class, _string_sezione, _mc_sezione, _ar_btn, _obj_delegax, id, _currentframe, _totalframes, play, onEnterFrame, stop, prevFrame, _id_cliccato, loadMovie;
function MenuTransNE3(fla, string_sezione, mc_sezione)
{
super();
_fla = fla;
_mia_class = this;
_string_sezione = string_sezione;
_mc_sezione = mc_sezione;
_ar_btn = new Array();
} // End of the function
function nuovo_pulsante(btn)
{
btn.stop();
_ar_btn.push(btn);
var _loc2 = _ar_btn.length - 1;
_ar_btn[_loc2].id = _loc2;
this.init();
} // End of the function
function obj_delega(obj)
{
_obj_delegax = obj;
} // End of the function
function primo_click(id)
{
this.press_(id);
_ar_btn[id].gotoAndStop(_ar_btn[id]._totalframes);
} // End of the function
function init()
{
this.crea_over();
this.crea_out();
this.crea_press();
} // End of the function
function crea_over()
{
var mia_class = _mia_class;
for (var _loc2 = 0; _loc2 < _ar_btn.length; ++_loc2)
{
_ar_btn[_loc2].onRollOver = function ()
{
mia_class.over(id);
};
} // end of for
} // End of the function
function over(id)
{
_ar_btn[id].onEnterFrame = function ()
{
if (_currentframe < _totalframes)
{
this.play();
}
else
{
delete this.onEnterFrame;
this.stop();
} // end else if
};
} // End of the function
function crea_out()
{
var mia_class = _mia_class;
for (var _loc2 = 0; _loc2 < _ar_btn.length; ++_loc2)
{
_ar_btn[_loc2].onRollOut = function ()
{
mia_class.out(id);
};
} // end of for
} // End of the function
function out(id)
{
_ar_btn[id].onEnterFrame = function ()
{
if (_currentframe > 1)
{
this.prevFrame();
}
else
{
delete this.onEnterFrame;
this.stop();
} // end else if
};
} // End of the function
function crea_press()
{
var mia_class = _mia_class;
for (var _loc2 = 0; _loc2 < _ar_btn.length; ++_loc2)
{
_ar_btn[_loc2].onPress = function ()
{
mia_class.press_(id);
};
} // end of for
} // End of the function
function press_(id)
{
_id_cliccato = id;
this.abilita_disabilita(id);
_obj_delegax.press_delega(id);
this.carica_sezione(id);
_fla.manager(id);
} // End of the function
function press_delega(id)
{
_id_cliccato = id;
this.abilita_disabilita(id);
_ar_btn[id].gotoAndStop(_ar_btn[id]._totalframes);
} // End of the function
function abilita_disabilita(id)
{
for (var _loc2 = 0; _loc2 < _ar_btn.length; ++_loc2)
{
if (id == _loc2)
{
_ar_btn[_loc2].enabled = false;
continue;
} // end if
_ar_btn[_loc2].enabled = true;
_ar_btn[_loc2].onEnterFrame = function ()
{
if (_currentframe > 1)
{
this.prevFrame();
}
else
{
delete this.onEnterFrame;
this.stop();
} // end else if
};
} // end of for
} // End of the function
function carica_sezione(id)
{
var sezione = _string_sezione + id + ".swf";
_mc_sezione.onEnterFrame = function ()
{
if (_currentframe > 2)
{
this.prevFrame();
}
else
{
this.loadMovie(sezione);
delete this.onEnterFrame;
} // end else if
};
} // End of the function
} // End of Class