I made this class on coffeescript to solve that problem:
class DragContainer
DragContainer.prototype = new createjs.Container()
DragContainer::Container_initialize = DragContainer::initialize
constructor: (opts) ->
@initialize opts
DragContainer::initialize = (opts) ->
@Container_initialize()
@droptargets = new Array()
@on 'mousedown', @handleMouseDown
handleMouseDown: (e) =>
@on 'pressup', (ev)=>
@removeAllEventListeners 'pressup'
if @droptargets and @droptargets.length > 0
@evaluateDrop e
evaluateDrop: (e) =>
target = null
dropped = false
for drop in @droptargets
pt = drop.globalToLocal stage.mouseX, stage.mouseY
if drop.hitTest pt.x, pt.y
target = drop
dropped = true
if dropped
@dispatchEvent {type: 'dropped', currentTarget: target}
else
@dispatchEvent {type: 'dropped', currentTarget: null}
The droptargets property is an array that keeps the objects you want to associate with the drop of your container.