Is there away to make a function or something so I don’t have to repeat all those button _alpha settings every time?
Notice each selected button will NOT be set to 0 (commented out for now).
Sorry about the wacky dot paths…
btn01.bbtn01.onRelease = function() {
loadMovie(“content/part01intro.swf”, “_root.viewer.content”);
//_root.sidePanel.nav.btn01.bbtn01.btn01Current._alpha = 0;
_root.sidePanel.nav.btn02.bbtn02.btn02Current._alpha = 0;
_root.sidePanel.nav.btn03.bbtn03.btn03Current._alpha = 0;
_root.sidePanel.nav.btn04.bbtn04.btn04Current._alpha = 0;
_root.sidePanel.nav.btn05.bbtn05.btn05Current._alpha = 0;
};
btn02.bbtn02.onRelease = function() {
loadMovie(“content/part02company.swf”, “_root.viewer.content”);
_root.sidePanel.nav.btn01.bbtn01.btn01Current._alpha = 0;
//_root.sidePanel.nav.btn02.bbtn02.btn02Current._alpha = 0;
_root.sidePanel.nav.btn03.bbtn03.btn03Current._alpha = 0;
_root.sidePanel.nav.btn04.bbtn04.btn04Current._alpha = 0;
_root.sidePanel.nav.btn05.bbtn05.btn05Current._alpha = 0;
};
btn03.bbtn03.onRelease = function() {
loadMovie(“content/part03security.swf”, “_root.viewer.content”);
_root.sidePanel.nav.btn01.bbtn01.btn01Current._alpha = 0;
_root.sidePanel.nav.btn02.bbtn02.btn02Current._alpha = 0;
//_root.sidePanel.nav.btn03.bbtn03.btn03Current._alpha = 0;
_root.sidePanel.nav.btn04.bbtn04.btn04Current._alpha = 0;
_root.sidePanel.nav.btn05.bbtn05.btn05Current._alpha = 0;
};
btn04.bbtn04.onRelease = function() {
loadMovie(“content/part04shopLogs.swf”, “_root.viewer.content”);
_root.sidePanel.nav.btn01.bbtn01.btn01Current._alpha = 0;
_root.sidePanel.nav.btn02.bbtn02.btn02Current._alpha = 0;
_root.sidePanel.nav.btn03.bbtn03.btn03Current._alpha = 0;
//_root.sidePanel.nav.btn04.bbtn04.btn04Current._alpha = 0;
_root.sidePanel.nav.btn05.bbtn05.btn05Current._alpha = 0;
};
btn05.bbtn05.onRelease = function() {
loadMovie(“content/part05reports.swf”, “_root.viewer.content”);
_root.sidePanel.nav.btn01.bbtn01.btn01Current._alpha = 0;
_root.sidePanel.nav.btn02.bbtn02.btn02Current._alpha = 0;
_root.sidePanel.nav.btn03.bbtn03.btn03Current._alpha = 0;
_root.sidePanel.nav.btn04.bbtn04.btn04Current._alpha = 0;
//_root.sidePanel.nav.btn05.bbtn05.btn05Current._alpha = 0;
};