Hi,
One way is to place a layer underneath the menu:

     myPlacemat=new DynLayer(null,50,50,300,300)
     this.document.addChild(myPlacemat)

And an eventlistener:

      myListener = new EventListener()
      myListener.onmouseover=function(e) {
          myPopUp.Collapse()
      }
      myPlacemat.addEventListener(myListener)

Cheers,
Richard Bennett

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)


----- Original Message -----
From: "Jim Richards" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 06, 2001 1:37 AM
Subject: [Dynapi-Help] popup problems with mouseout/mouseover/collapse


>
> What I am trying to do is use the "core.gui.popup.js" class in DynAPI. I
> need to create a dynamic popup menu that does the following things:
>
> :: Allows for customisable x,y location for the Menu/subMenu to appear.
> :: Is able to change the size of the subMenu irrespective of the parent
size.
> :: Knows when the mouse has left the menu entirely, and collapses.
>
>
> For the above requirements rather not have to change any of the code in
the
> library, but rather do it with external functions. So far I have not had
much
> luck, so I have been playing with the library.
>
> I have found that I can get the first two requirements to work, but for
the
> life of me I cannot seem to find a way to see if the mouse has left the
menu
> layer. Using a mouseOut function seems to be the way, but the menu uses
this
> function to create the next menu. What I think I need is a way to find if
there
> is a mouseOut with no mouseOver.
>
> I hope this makes sense, and that someone can help. It seems to me that
these
> are some quite basic functions that should be included in the library by
> default (perhaps they are and I'm just blind :) ).
>
> Cheers
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
> ____________________________________________________________
> Get your free domain name and domain-based e-mail from
> Namezero.com. New!  Namezero Plus domains now available.
> Find out more at: http://www.namezero.com
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to