Evening all,

Simple one here I hope..

I have a bunch of Movieclips that I want to color in using drag and 
drop of little colored tiles from a TileList.

The MovieClips obviously do not implement IUIcomponent, so how do I 
use DragManager.acceptDragDrop(target:IUIComponent) to accept the 
drag once over the MovieClip?

Here's my code:

/*
 *   Function to handle dragEnter over MovieClip rug shape
 */
public function dragEnterHandler(event:DragEvent): void
{               
    // Get the drop target component from the event object
    var dropTarget:MovieClip = MovieClip(event.currentTarget);
                        
    // Accept the drag only if the user is dragging data 
    // identified by the 'items' format value.
    if (event.dragSource.hasFormat('items')) 
    {
        DragManager.acceptDragDrop(dropTarget);
    }
}


As ever, many thanks for your time,
Rich            

Reply via email to