This is a known issue because the drag and
drop stuff is static and therefore doesn’t often play nice across loaded
swfs. In the Flex app that does the loading try
putting a specific reference to the DragManager to make sure it gets loaded
correctly. So for example, in your initialize for the Application put var
dm:DragManager = null. I think that should pull it in and help
out. Matt From: (Flex 1.5, AS 2) My drag and drop code has worked fine for a long time. Today, I took
the swf generated by the flex compiler and am loading it inside of a loader
control in another flex app. Everything about the inner app works
fine....except for the call to DragManager.doDrag(), which gets called by the
mouseDown event on the draggable objects. I have verified that the event is getting called, and that inside the
event handler "event.target" is correct. Yet, for some reason, when
the swf is loaded inside of another swf, the drag operation does not work. It
is like the call to doDrag is failing without error. All of the other code in
the dragDrop and dragOver event handlers execute fine (when I drag in an item
from a list, where I am not handling the initialization of the dragsource and
am not calling doDrag()). When I hit the swf directly, drag/drop works wonderfully. When I load
it inside of another swf, dragging does not work. Any thoughts? ANY help very much appreciated. Thanks, Karl
|
- RE: [flexcoders] DragManager issues when running in swf insid... Matt Chotin