getNextHighestDepth

Hi

I followed the XML drop down tutorial and managed to get the system working fine, however when I have applied this method to my own project I have found a problem.

The original tutorial uses a depth of 0 when creating the menu item:

var curr_menu = container.createEmptyMovieClip(name, depth);

This means the menu items were being placed under another movieclip which is being created programmatically.

My solution was to replace the original depth with getNextHighestDepth:
var curr_menu = container.createEmptyMovieClip(name, this.getNextHighestDepth());

This appeared to work fine,the menu now appeareed above the other movieclip, until I realised the menu rollovers wouldn’t work after loading the menu a number of times (I load the menu onRelease of a button).

Any help would be much appreciated.

Scott