This content has been marked as final. Show 3 replies
"repairman123" <firstname.lastname@example.org> wrote in message
> Hi guys,
> I spent several days and finally figured out some weird issue with drag
> drop to a canvas. It seems like if the "backgroundColor" attribute of
> is not set then you cannot drag and drop to it. This is ridiculous to the
> extreme! what does drag and drop have to do with backgroundcolor of the
> target? Does flex have some bug tracking system where i can file a bug?
> See the code below where if you set the backgroundColor attribute then you
> see it lets canvas to be the target when you drag the image over the
> But if you delete backgroundColor then it shows the red cross when you
> drag the
> image over canvas. Is there any logical explaination? By the way, is
> there a
> forum where flex issues are posted and developers from adobe actually
Try giving it a backgroundColor but also make the backgroundAlpha 0.
well, that's point. I know adding backgroundColor value will allow the drag and drop. The question is Why? what does background color have to do with drag being accepted? It's like your saying the car will only shift gear if I am wear tennis shoes! Completely illogical! Must be bug. But where I file the bug? is adobe bug database?
This is not a bug! This is how containers behave. With Canvas, HBox, etc., without backgroundColor set, there is no physical (graphic) object that the dragged object can intersect with.
From the Flex documentation:
To use a container as a drop target, you must use the backgroundColor property of the container to set a color. Otherwise, the background color of the container is transparent, and the Drag and Drop Manager is unable to detect that the mouse pointer is on a possible drop target.