Re: [flexcoders] Drag and Drop to Nowhere

2008-02-21 Thread Josh McDonald
I'm pretty sure the "x" icon image is set as a style on the dragproxy, so
you should be able to get away with just assigning a custom style name and
setting up your trashcan icon in your css.

-J

On Fri, Feb 22, 2008 at 7:11 AM, Jim Cook <[EMAIL PROTECTED]> wrote:

>   Can someone give me a pointer on how to begin this? Imagine a shopping
> cart that contains images of items. I want to allow users to drag
> items out of the shopping cart and when they drop them, the items are
> removed.
>
> Detecting DRAG_COMPLETE and removing the items is not my problem. My
> problem is giving the user feedback that they can drop the item they
> are dragging _outside_ of the shopping cart.
>
> Default behavior shows a red x on my DragProxy no matter where it
> goes. I would like the DragProxy to display a trashcan image when the
> user leaves the shopping cart no matter what object they are dragging
> over.
>
> I suppose the problem is all the other components are saying "no"
> during the DRAG_ENTER event. Maybe I have to fake the whole drag/drop
> concept to pull this off?
>
> -- jim
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls, It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Drag and Drop to Nowhere

2008-02-21 Thread Jim Cook
Can someone give me a pointer on how to begin this? Imagine a shopping
cart that contains images of items. I want to allow users to drag
items out of the shopping cart and when they drop them, the items are
removed.

Detecting DRAG_COMPLETE and removing the items is not my problem. My
problem is giving the user feedback that they can drop the item they
are dragging _outside_ of the shopping cart. 

Default behavior shows a red x on my DragProxy no matter where it
goes. I would like the DragProxy to display a trashcan image when the
user leaves the shopping cart no matter what object they are dragging
over.

I suppose the problem is all the other components are saying "no"
during the DRAG_ENTER event. Maybe I have to fake the whole drag/drop
concept to pull this off?

-- jim