In the following source I want to drag the "myChildLevel2" from "myChild" to
"myChild2"
but
when the draged layer cannot get out of the "myChild" layer (container)
What I must do in order to allow the "myChildLevel2" layer to be draged
outside the container?
Maybe I must change the container ondragstart????
Can anyone tell me what is the approach to this?
Thank you
Andreas
============================================
<html>
<head>
<title>DragDrop 3 example</title>
</head>
<script language="Javascript" src="/SrcDC/_gen/dynapi.js"></script>
<script language="Javascript">
DynAPI.setLibraryPath('/SrcDC/_gen/')
DynAPI.include('dynacore.api.object.js')
DynAPI.include('dynacore.api.layer')
DynAPI.include('dynacore.api.document')
DynAPI.include('dynacore.api.events')
DynAPI.include('dynacore.api.dragevent')
DynAPI.onLoad=function() {
DynAPI.document.setBgColor('white')
myLayer=new DynLayer('test',50,50,300,300,'#c0c0c0')
myChild=new DynLayer('child',10,50,100,100,'#808080')
myChildLevel2=new DynLayer('innerchild2',10,10,50,50,'#ffffff')
myChild.addChild(myChildLevel2)
myChild2=new DynLayer('child',110,150,100,100,'#808080')
myChild2Level2=new
DynLayer('innerchild2',10,10,50,50,'#ffffff')
myChild2.addChild(myChild2Level2)
myLayer.setHTML('testing this')
DragEvent.setDragBoundary(myLayer)
DragEvent.enableDragEvents(myChildLevel2)
DragEvent.enableDragEvents(myChild2Level2)
var l=new EventListener(myChild)
myChild.addEventListener(l)
DynAPI.document.addChild(myLayer)
myLayer.addChild(myChild)
myLayer.addChild(myChild2)
}
</script>
<body>
</body>
</html>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help