Hi all,

 

I have a component like this:

<mx:Box

                xmlns:mx=”http://www.adobe.com/2006/mxml

                dragEnter="doDragEnter(event)"

                dragDrop="doDragDrop(event)"

mouseChildren=”false”>

                <mx:Image source="@Embed[“icon.SWF”]" width="48" height="48"/>

                <mx:Text textAlign="left" width="100%" selectable="false" text="{data.name}"/>

                <mx:Script>

                               <![CDATA[

                                               import mx.core.IUIComponent;

                                               import mx.managers.DragManager;

                                               import mx.events.DragEvent;

 

                                               private function doDragEnter(event:DragEvent):void

                                               {

                                                               DragManager.acceptDragDrop(IUIComponent(event.target));

                                               }

 

                                               private function doDragDrop(event:DragEvent):void

                                               {

                                                               var item:Object = event.dragSource.dataForFormat("item");

                                                               if (item == null) {

                                                                              item = event.dragSource.dataForFormat("items")[0];

                                                               }

                                                               trace(item);

                                               }

                               ]]>

                </mx:Script>

</mx:Box>

 

If “icon.SWF” will be replaced with “icon.PNG” then Drag&Drop works if mouse is over any pixel of the component.

But here Drag&Drop doesn’t work if mouse is over Image component with loaded SWF. Does anybody know how I can repair that?

 

Thanks a lot

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to