I am still battling a drag drop issue with panels.  It seems, that 
when the parent of a panel is a valid drop target, but the panel is 
not, that the panel's DragEnter event isn't fired (which ultimately 
changes the cursor), until the dragged element crosses over a child 
of the panel.  This is causing us some odd issues.  One pattern I've 
found to this bug is that it only appears when the Panel is launched 
via the popup manager.  Here is a simple test case:

TestPanel.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"; title="Lalala" 
width="400" height="300" dragEnter="doDragEnter(event)">
        <mx:Text width= "350" text="jadfh asdfkjh akjfahkjh asdkfh 
kasdjfhk ajhfkj adhfkjhasdfk jhasdfkj ahs dfk jsd hf kjasd hfkja 
sdhfk jsdah fkj sdh k kfjsdhf"/>
        <mx:TextInput/>
        <mx:Label text="lalala"/>
        <mx:Script>
                <![CDATA[
                import mx.events.DragEvent;
                private function doDragEnter(event:DragEvent):void{
                        trace(this.className + ".doDragEnter");
                }
                ]]>
        </mx:Script>
</mx:Panel>

MainApp.mxml
==========
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
        layout="absolute"
        creationComplete="popup()"
        dragEnter="DragManager.acceptDragDrop(event.target as 
IUIComponent)"
        >
    <mx:Script>
        <![CDATA[
                import mx.managers.PopUpManager;
                import mx.core.IUIComponent;
                import mx.managers.DragManager;
                import mx.core.DragSource;
                private function popup():void{
                        var win:TestPanel = PopUpManager.createPopUp
(this,TestPanel,false) as TestPanel;
                        win.x = 200;
                        win.y= 200;
                }
                
                private function doDrag(event:MouseEvent):void{
                        var ds:DragSource = new DragSource();
                        var dragInitiator:*= event.currentTarget;
                        ds.addData("data","format");
                        DragManager.doDrag(dragInitiator,ds,event);
                }
        ]]>
    </mx:Script>
        
    <mx:Box backgroundColor="#ff0000" mouseDown="doDrag(event)" 
height="50" width="50"/>
</mx:Application>


If you run this app, you'll notice that dragging the red box over 
the borders or title area do not show the appropriate feedback (red 
x cursor), but it will, if you drag over the children of the panel 
(Text, TextInput or Label).

Has anyone found a valid work around for this?






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to