per studio sto provando a rifare questo sito http://www.bale.com.au/
e il menu, quindi l'attivazione/disattivazione dei pulsanti sono riuscito a farlo
http://www.showarea.net/bale
questo è l'esempio che ho fatto e se provate a navigare un po' ad un certo punto si impallinae non so proprio perché qualcuno mi può aiutare pls![]()
![]()
questo è il codice:
codice://variables actual_section = ''; target_section = ''; actual_bgrbtn = ''; target_bgrbtn = ''; actual_txt =''; target_txt =''; actual_btn =''; function SFout() { eval("_root."+_root.actual_section).gotoAndPlay("section_out"); } function SFin() { eval("_root."+_root.target_section).gotoAndPlay("section_in"); } function setInactive() { eval("_root."+_root.actual_bgrbtn).gotoAndPlay("active_out"); eval("_root."+_root.actual_txt).gotoAndPlay("active_out"); eval("_root."+_root.actual_btn).enabled = true; } ///////////////////////////////ACTION BUTTONS/////////////////////// //////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////// //action btn1///////// item1_btn.onRelease = function() { _root.target_section = "section1"; _root.bgr1_btn.gotoAndPlay('active'); _root.txt1_btn.gotoAndPlay('active'); _root.item1_btn.enabled = false; if (_root.actual_section != _root.target_section) { _root.SFout(); } }; //action btn2///////// item2_btn.onRelease = function() { _root.target_section = "section2"; _root.bgr2_btn.gotoAndPlay('active'); _root.txt2_btn.gotoAndPlay('active'); _root.item2_btn.enabled = false; if (_root.actual_section != _root.target_section) { _root.SFout(); } }; //action btn3//////// item3_btn.onRelease = function() { _root.target_section = "section3"; _root.bgr3_btn.gotoAndPlay('active'); _root.txt3_btn.gotoAndPlay('active'); _root.item3_btn.enabled = false; if (_root.actual_section != _root.target_section) { _root.SFout(); } }; //action btn4////// item4_btn.onRelease = function() { _root.target_section = "section4"; _root.bgr4_btn.gotoAndPlay('active'); _root.txt4_btn.gotoAndPlay('active'); _root.item4_btn.enabled = false; if (_root.actual_section != _root.target_section) { _root.SFout(); } }; //action btn5///// item5_btn.onRelease = function() { _root.target_section = "section5"; _root.bgr5_btn.gotoAndPlay('active'); _root.txt5_btn.gotoAndPlay('active'); _root.item5_btn.enabled = false; if (_root.actual_section != _root.target_section) { _root.SFout(); } };

Rispondi quotando