I did some testing and experimenting some more. I just used something like this:
private function dragEnterHandler(event:DragEvent) {
// Get the drop target component from the event object.
var dragInitiator:Image=Image(event.currentTarget);
DragManager.acceptDragDrop(dragInitiator);
}
// Get the drop target component from the event object.
var dragInitiator:Image=Image(event.currentTarget);
DragManager.acceptDragDrop(dragInitiator);
}
and then kept my same dragComplete on the DataGrid and it worked fine.
thanks!
jgraham_us <[EMAIL PROTECTED]> wrote:
So you want to drag from the grid onto an image?
I would think it would work just like any other component.
Just define handlers for dragEnter, dragDrop, dragExit, etc.
On dragEnter just check the DragSource format and use the DragManager
to accept the drop.
You can find many examples of this by looking at the samples source
and probably by searching here even.
--- In [EMAIL PROTECTED]ups.com , "ldyhwke24" <[EMAIL PROTECTED]..> wrote:
>
> Hi all.
>
> I figured out how to drag and drop between grids, that was rather
> simple. But, I'm having difficulty getting the drag 'n drop between
a
> grid and an image.
>
> On the grid side of things, it seems rather simple; but on the image
> side of things, I'm not quite sure how to implement this.
>
> Ideas? Should I use DragManager for this?
>
> thanks!
>
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___

