listening to mouseEvent.CLICK on an empty clip
is there a way to listen to a MouseEvent.CLICK event on an empty MovieClip...
essentially I want to listen to mouse click events on a container thats not the stage to then add objects to it...
basically I want this to work....
Code:
var clip = new Sprite()
addChild(clip)
var container = new Container()
clip.addEventListener(MouseEvent.CLICK, clickHandler)
function clickHandler(e:MouseEvent)
{
trace("CLICKED")
}
I can listen to the stage and get the same functionality... but that somehow feels dirty.