# Little black out here need help with a treemenu in director 8.5?

**URL:** <https://forum.kirupa.com/t/little-black-out-here-need-help-with-a-treemenu-in-director-8-5/49886>\
**Category:** design\
**Created:** [April 27, 2004, 3:55pm UTC](https://forum.kirupa.com/t/little-black-out-here-need-help-with-a-treemenu-in-director-8-5/49886 "2004-04-27T15:55:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [April 27, 2004, 3:55pm UTC](https://forum.kirupa.com/t/little-black-out-here-need-help-with-a-treemenu-in-director-8-5/49886/1 "2004-04-27T15:55:04Z")

</div>

Hi all,

Need some help with a vertical treemenu in director 8.5.

It is as follows:

Let’s say i got 8 main navButtons.  
Then on mouseDown button 1 my menu collapse and you see a bg img with subnav buttons.

Right now i got

```auto
on mouseUp
  if the doubleClick then exit
  startTimer
  repeat while the timer < 20
    if the mouseDown then
      cursor 280
      sprite(12).visible=false
      sprite(16).visible=false
      sprite(17).visible=false
       sprite(18).visible=false
  sprite(19).visible=false  
      exit
    end if
  end repeat
  sprite(12).visible=true
  sprite(16).visible=true
  sprite(17).visible=true
  sprite(18).visible=true
  sprite(19).visible=true  
end mouseUp

on mouseLeave
  
end

```

So doubleClick closes the collapse img.

But i want to have it on the second mouse down.

Recap: first onMouseDown -\>collapse second onMouseDown de-collapse

Any tips, tutorials???

Kind regards
