Please help !

On May 6, 4:37 pm, Nilesh Pawar <[email protected]> wrote:
> Hello Members,
>
> I am new to Flex and this is my first post to FUG. I am using dragdrop
> in TileList having big boxes as TileList itemrenders.
>
> I have defined one invisible drop target to accept these tilelist
> boxes so user can remove items from tilelist with dragging them on
> above invisible target.
>
> In accept DragDrop function I am facing problem with Drag Event as it
> extends MouseEvent. If user want to remove big box object the target
> is accepting same if the mouse cursor is on the target.
>
> If user picks box from one side and dragged it over the invisible
> target event entering this big box more than half way I am not able to
> catch "DragEvent" as mouse pointer is at the bottom side of box object
> and not
> over the drop target.
>
> Is there any way to define co-ordinates to the mouse while dragging,
> so when dragged object touches to the target it should be acceptable.
>
> Here is my sample code -
>
> <mx:TileList dragEnabled="true" id="tileList"
> dataProvider="{TileListdp}" dropEnabled="true"
> doubleClick="showPopup(event)"
>
> itemRenderer="com.servient.renderers.BigBoxItemRenderer"
> dragMoveEnabled="true"
>                    rowHeight="150" columnWidth="400" width="100%"
> height="100%">
>  </mx:TileList>
>
> // invisible Trash Can where use is dragging object to remove
> <mx:Image dragDrop="item_dragDrop(event);"
> dragEnter="item_dragEnter(event);" height="42" width="42"
> source="@Embed('images/trash-small.png')" />
>
> //Drag Drop Event Handling
>  private function item_dragEnter(evt:DragEvent):void {
>        //Alert.show("In DragEnter");
>        var obj:IUIComponent = evt.currentTarget as UIComponent;
>        DragManager.acceptDragDrop(obj);
>        DragManager.showFeedback( DragManager.LINK );
>    }
>
>    private function item_dragDrop(evt:DragEvent):void {
>        //Alert.show("Here in DragDrop");
>        var item:Object = tileList.selectedItem;
>        var idx:int = TileListdp.getItemIndex(item);
>        TileListdp.removeItemAt(idx);
>    }
>
> Thanks in advance!
>
> - Nilesh
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/flex_india?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to