I have an HTTPService that gets a list of images from my server... Is there any way that I can Embed these images?
The reason I want to embed them is so I can use the DragManager.doDrag(img, dsource, event, dragImg);
The dragging portion works, but when I drag the image it is blank until i drop the image.... It's really strange and I think it has to do with Embedding the image
Here is the function that I am using....
private function dragIt(event:MouseEvent):void
var img:Image = event.currentTarget as Image;
var dragImg:Image = new Image();
dragImg.source = img.source;
var dsource:DragSource = new DragSource();
DragManager.doDrag(img, dsource, event, dragImg);
Just in case anyone wants to know, I found a solution at http://spitzkoff.com/craig/?p=17
var dragProxy:Image = new Image();
var bmp:Bitmap = new Bitmap(Bitmap(event.currentTarget.content).bitmapData);
dragProxy.source = bmp;
DragManager.doDrag(img, dsource, event, dragProxy);