Hi,
Il Maestro posted the solution for dragging in frames last week, but it =
seems when done like that:
tdoc =3D new DynDocument(parent.treeFrame);
myLayer=3Dnew 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!=3DDynDocument);
blah blah
var lyr=3Dthing.getComponent();
lyr.removeEventListener(DragEvent.lyrListener);
=20
or something like that, or there's a bug in the code somewhere else.
Cheers,
Richard :o
ma...@ri...
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of =
DynAPI2)
=20
|