Hi,
Il Maestro posted the solution for dragging in frames last week, but it seems when done like that:
 
     tdoc = new DynDocument(parent.treeFrame);
       myLayer=new DynLayer(null,100,100,100,100,'#c0c0c0')
       tdoc.addChild(myLayer);
       DragEvent.setDragBoundary(myLayer, 0, 300, 300, 0)
       DragEvent.enableDragEvents(tdoc,myLayer)
 
You get an error if you click on the frame.
To avoid this I had to add the line:
 
DragEvent.disableDragEvents(tdoc)
 
which seems a bit of a hack, either we should hard code it in dragevents.js i.e.:
 
 if(thing.constructor!=DynDocument);
    blah blah
    var lyr=thing.getComponent();
    lyr.removeEventListener(DragEvent.lyrListener);
   
or something like that, or there's a bug in the code somewhere else.
 
Cheers,
Richard  :o
 
[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
 
 

Reply via email to