Something like:
myListenerDrag=new EventListener(myLayer)
myListenerDrag.ondragstart=function(e){
o=e.getTarget();
o.setZIndex(+100)
}
myListenerDrag.ondragend=function(e){
o=e.getTarget();
o.setZIndex(-100)
}
myLayer.addEventListener(myListenerDrag)
Cheers,
Richard Bennett
[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
Find the DynAPI faq here:
http://sourceforge.net/docman/display_doc.php?docid=656&group_id=5757
Browse the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi
----- Original Message -----
From: "doug moore" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 23, 2001 10:28 PM
Subject: [Dynapi-Help] how to make layer come to top when clicked?
> When using the drag methods in DynAPI 1 the layer you clicked would come
to the
> top when you clicked on it. that doesn't appear to be the case in
DynAPI2.. is
> there a way to do this?
>
> thank you,
>
> doug.
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
> ____________________________________________________________
> Get your 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