I have a Movieclip (instance: my_mc) that holds Sprite, Bitmap, Texfield and Button (children)
The Movieclip (my_mc) has some variables I want to access from my event through e.target
my_mc.addEventListener(MouseEvent.CLICK, my_fc);
function my_fc(e:MouseEvent):void{
...
}
so when someone clicks on a object that is a child of my_mc, only my_mc actually receives the CLICK
for this purpose I used my_mc.mouseChildren = false;
BUT I also need to have button still active so that would be only child that also receives the CLICK when someone clicks it. I have tried to add button.mouseEnabled = true; but that doesn’t work…
Any suggestions?
cauko, skus toto….
This is assuming that your button is called btn, if there are more you might need to assign the 2ndary listener dynamically. You cannot use
my_mc.mouseChildren = false;because that removes all mouse events.