From: Matt F. <ma...@ne...> - 2001-10-12 21:24:56
|
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 |