Hi Santosh,
I tried but still it is the same.Infact without using the code which you
suggested I am able to acheive what I need when I created the images
dynamically in actionscript ie; when I drag the image onto another panel the
image in the first panel is still there,it is not completely moved.
I am wondering is it specific behaviour of a GridItem.
Below is the code which I have used for the second panel DragEnter event
when I used GridItems:
*private* *function* dragAccept(event:DragEvent):*void
*
{
*var* dropTarget:Panel = event.currentTarget *as* Panel;
DragManager.acceptDragDrop(dropTarget);
DragManager.showFeedback(DragManager.COPY);
}
And for the images which I have created dynamically below is the code used
for DragEnter event of the second panel:
*
private* *function* dragAccept(event:DragEvent):*void
*
{
*var* dropTarget:Panel = event.currentTarget *as* Panel;
DragManager.acceptDragDrop(dropTarget);
}
Thanks,
Madhavi
On Wed, Mar 30, 2011 at 9:23 AM, Santosh <[email protected]> wrote:
> HI,
> In second panel Drag Enter event write this code
> DragManager.showFeedback(DragManager.COPY);
> so that it will copy the object in to second panel.
>
> Regards
> Santosh M
> http://techflex.blog.com
>
> On Mar 29, 6:55 pm, madhavi chinni <[email protected]>
> wrote:
> > Hi,
> >
> > I have 2 panels.In one Panel I have GridItems which are created
> > dynamically through actionscript.I want to drag and drop that GridItem
> > into another Panel.But when I am doing that the GridItem is getting
> > completely moved into another Panel.I want the original copy to be
> > still in the first Panel.
> > Could anyone help me on this.
>
> --
> 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.
>
>
--
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.