Dynamic menu

Hi

Bit of a detailed explanation of a problem with getting a dynamic menu to talk to another menu set. Grateful for any input on a fix.

You’ll see from http://www.dirksmith.com/index_vtest.php that my interface has 2 sets of mc buttons - first the right hand dynamic menu (home, work etc); and second the polaroids (mc buttons) - that are draggable and double clickable (leading to the work movie).

The right hand movie is generated using the following script:

fncBtnBuild = function () {
for (var icrBtn = 0; icrBtn<7; icrBtn++) {
var rfcClip = this[“mvcBtn”+icrBtn];
rfcClip.nbrID = rfcClip.stgBtnID=icrBtn;
rfcClip.onRelease = function() {
this.enabled = false;
this.gotoAndStop("_off" ;
var rfcLast = this._parent[“mvcBtn”+this._parent.nbrBtnLast];
rfcLast.enabled = true;
rfcLast.gotoAndStop("_up" ;
this._parent.nbrBtnLast = this.nbrID;
};
}
mvcBtn0.enabled = false;
mvcBtn0.gotoAndStop("_off" ;
nbrBtnLast = 0;
};
fncBtnBuild();

The second set of mc buttons (the polaroids) has the following script attached to each mc button (each of the polaroids):

on (press) {
//Start Dragging Movieclip Behavior
startDrag(this, false, 168, 224, 564, 476);
this.swapDepths(this._parent.getNextHighestDepth());
n=this.getDepth();
_root.introBox.swapDepths(n+1);
//End Behavior

}
on (release) {
if(getTimer()-lastClick < 500){
loadMovieNum(“http://www.dirksmith.com/flash_2/port_conrad.swf",50);
_level0_root.mvcBtn0.enabled = true;
_level0_root.mvcBtn0.gotoAndStop(”_up" ;
_level0_root.mvcBtn1.enabled = false;
_level0_root.mvcBtn1.gotoAndStop("_off" ;
}
lastClick=getTimer();
stopDrag();

}

The idea is that when the work movie is accessed using a polaroid button from the main ‘page’, the work button (mvcBtn1) in the right hand menu is set to “_off” - deactivating it and setting it to down.

This is working fine.

The problem is that when the work movie is accessed through a polaroid button, the home button (mvcBtn0) is not reverting to the down state ("_off" when clicked immediately afterwards.

I’ve solved the problem for the other right hand menu buttons by using

_level0_root.mvcBtn0.enabled = true;
_level0_root.mvcBtn0.gotoAndStop("_up" ;

when each movie is loaded - thus resetting the home bt (mvcBtn0) to the decativated state.

My solution to attempt to fix the problem of the home button state not reverting to the down state clicked immediately after a polaroid button movie has been clicked is to use

on(release){
_level0_root.mvcBtn0.enabled = false;
_level0_root.mvcBtn0.gotoAndStop("_off" ;
}

on the home button - but this is not working - presumably because of an issue (conflict) with the dynamic script that creates the right hand buttons.

So - in summary - all of the buttons are working fine - except the home button (mvcBtn0) reverting to the deacativated state immediately after a polaroid button has been clicked.

I’d be grateful for any ideas on a fix.

Thanx for your time on this.

Dirk