Drop Down Menu. Lag feature

Hi Guys,

I am trying to recreate the menu effect at MM website. Notice that theres a lag associated with the rollovers.

I can hard code all buttons, don’t really need an XML file. I manged to somewhat get the basics right. I noticed that onRollOver function does not work if placed under another onRollOver function. Therefore I used onMouseMove function instead.
Code below - Actionscript:
[color=#0066cc]stop[/color]color=#33bb33[/color];
[color=#808080]///[/color]
button1.[color=#006600]onMouseMove[/color] = [color=#b1b100][url=“http://flashmove.com/dictionary/search.php?q=function”]function[/color]color=#33bb33[/color] [color=#33bb33]{[/color]
[color=#b1b100]if[/color] [color=#33bb33]([/color]button1.[color=#006600][url=“http://flashmove.com/dictionary/search.php?q=hitTest”]hitTest[/color][color=#33bb33]([/color][color=#0066cc][url=“http://flashmove.com/dictionary/search.php?q=_root”]_root[/color]._xmouse, [color=#0066cc][url=“http://flashmove.com/dictionary/search.php?q=_root”]_root[/color]._ymouse, [color=#0066cc][url=“http://flashmove.com/dictionary/search.php?q=true”]true[/color][color=#33bb33])[/color][color=#33bb33])[/color] [color=#33bb33]{[/color]
button1.[color=#006600]submenu1[/color].[color=#006600]gotoAndStop[/color]color=#33bb33[/color];
[color=#33bb33]}[/color] [color=#b1b100]else[/color] [color=#33bb33]{
//------------------------------<<<< Lag function shd go in here.
[/color] button1.[color=#006600]submenu1[/color].[color=#006600]gotoAndStop[/color]color=#33bb33[/color];
[color=#33bb33]}[/color]
[color=#33bb33]}[/color];
[color=#808080]
//[/color]
button2.[color=#006600]onMouseMove[/color] = [color=#b1b100][url=“http://flashmove.com/dictionary/search.php?q=function”]function[/color]color=#33bb33[/color] [color=#33bb33]{[/color]
[color=#b1b100]if[/color] [color=#33bb33]([/color]button2.[color=#006600][url=“http://flashmove.com/dictionary/search.php?q=hitTest”]hitTest[/color][color=#33bb33]([/color][color=#0066cc][url=“http://flashmove.com/dictionary/search.php?q=_root”]_root[/color]._xmouse, [color=#0066cc][url=“http://flashmove.com/dictionary/search.php?q=_root”]_root[/color]._ymouse, [color=#0066cc][url=“http://flashmove.com/dictionary/search.php?q=true”]true[/color][color=#33bb33])[/color][color=#33bb33])[/color] [color=#33bb33]{[/color]
button2.[color=#006600]submenu2[/color].[color=#006600]gotoAndStop[/color]color=#33bb33[/color];
[color=#33bb33]}[/color] [color=#b1b100]else[/color] [color=#33bb33]{[/color]
button2.[color=#006600]submenu2[/color].[color=#006600]gotoAndStop[/color]color=#33bb33[/color];
[color=#33bb33]}[/color]
[color=#33bb33]}[/color];
[color=#808080]
// *[/color]
I prefer to put code at one place in a file. So here its placed at the root.

I just can’t get the lag in place. I have attached a file here. Can anyone give pointers as to how I should layout the file and add the lag feature. I tried using a t=0, if t==15 {do this}else{t++} But that doesn;t seem to work either. Any ideas using setInterval…???

Thanks
surdzz