I have tried to do something similair. I made a big parent layer,
attached the event to the parent used a simple if statement to check
that the mouse was in the boundaries of the [drag here] layer. If you
run into any problems I hope I can help you out!

//Victor


-----Ursprungligt meddelande-----
Fran: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] For Matt Fair
Skickat: den 13 oktober 2001 00:21
Till: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Amne: [Dynapi-Help] layer with a drag handle


Is there a way to attach a handle layer to another layer.
For example:

[Drag Here]+---------------------------+
            |                           |
            |      Layer                |
            +---------------------------+

So when you click on the "drag here" layer everything will move. I have
thought about doing something like:

draghere=new dynlayer();
draghere.setHTML("Drag Here");
draghere.moveTo(layer.getX()-draghere.getContentWidth(),layer.getY());
DynAPI.document.addChild(draghere);

But the problem that I have with this is how do I have the layer move if

it isn't a part of it, and if I do get it to work, since they are 
different objects instead of child and parrent objects they may separate

from one of eachother and have a delay (wich would look kinda wierd).
Also I would like to have a parent or child of the layer to simplify
things.
        
Any sugestions?

Thanks
Matt


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


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

Reply via email to