DragProxy image is not working in AIR

25 views
Skip to first unread message

Chandra

unread,
Dec 20, 2011, 1:43:02 AM12/20/11
to Flex India Community
Hi All,

I am trying to add dragproxy to dragmanager.dodrag method but the drag
proxy does not appear. The same code seems to be working in the web
version. PF the code below which is called on image mouse move event:


private function Img_mouseMoveHandler(event:MouseEvent):void
{
// Get the drag initiator component from the event object.
var dragInitiator:Image = Image(event.currentTarget);

// Create a DragSource object.
var ds:DragSource = new DragSource();

// Add the data to the object.
ds.addData(dragInitiator, 'img');
//Create a copy of the image to use as a drag proxy.
var dragProxy : Image = new Image ();
dragProxy.source = dragInitiator.source;
dragProxy.width = dragInitiator.width;
dragProxy.height = dragInitiator.height;
DragManager.doDrag(dragInitiator, ds, event, dragProxy);
}

Senthil K.N

unread,
Dec 20, 2011, 4:13:46 AM12/20/11
to flex_...@googlegroups.com
hi,

Yes i had this problem while drag and drop images,  i solve this , 

Drag proxy is not working on adobe air.

 you have using UIComponent for this. then image source is assign to that then u get image proxy.





K.N.Senthil.

snehalata nagaje

unread,
Jan 16, 2012, 2:39:16 AM1/16/12
to flex_...@googlegroups.com
I am facing same problem.
Can you please explain in detail, how do u achived this?
Reply all
Reply to author
Forward
0 new messages