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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Karl Johnson
Sent: Thursday, March 02, 2006 9:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DragManager issues when running in swf inside a swf

 

(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




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to